Home
last modified time | relevance | path

Searched refs:fields (Results 1 – 25 of 37) sorted by path

12

/unit/
H A DCHANGES279 *) Change: HTTP header fields with underscores ("_") are now discarded
299 discarding request header fields with irregular (but still valid)
664 *) Bugfix: names of response header fields in Node.js module were
749 *) Bugfix: header fields values with non-ASCII bytes might be handled
839 *) Bugfix: tabs and trailing spaces were not allowed in header fields
/unit/go/
H A Dnxt_cgo_lib.h18 NXT_FIELDS_OFFSET = offsetof(nxt_unit_request_t, fields)
H A Drequest.go80 fields := get_fields(req)
82 for i := 0; i < len(fields); i++ {
83 f := &fields[i]
H A Dresponse.go67 fields := 0
72 fields++
77 C.nxt_unit_response_init(r.c_req, C.uint16_t(code), C.uint32_t(fields),
/unit/pkg/deb/debian.module/
H A Dcopyright.unit-jsc-common467 boilerplate notice, with the fields enclosed by brackets "[]"
/unit/pkg/rpm/rpmbuild/SOURCES/
H A DCOPYRIGHT.unit-jsc-common467 boilerplate notice, with the fields enclosed by brackets "[]"
/unit/src/java/
H A Dnxt_jni_Request.c287 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getHeader()
307 return nxt_java_newHeaderNamesEnumeration(env, r->fields, r->fields_count); in nxt_java_Request_getHeaderNames()
326 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getHeaders()
332 f = r->fields + r->fields_count; in nxt_java_Request_getHeaders()
335 return nxt_java_newHeadersEnumeration(env, r->fields, r->fields_count, in nxt_java_Request_getHeaders()
336 f - r->fields); in nxt_java_Request_getHeaders()
359 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getIntHeader()
448 f = r->fields + r->content_type_field; in nxt_java_Request_getContentType()
606 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getServerName()
634 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getServerPort()
H A Dnxt_jni_Response.c396 f = resp->fields + resp->fields_count; in nxt_java_add_int_header()
449 res = nxt_java_findHeader(resp->fields, in nxt_java_Response_containsHeader()
450 resp->fields + resp->fields_count, in nxt_java_Response_containsHeader()
488 f = nxt_java_findHeader(req->response->fields, in nxt_java_Response_getHeader()
520 return nxt_java_newHeaderNamesEnumeration(env, req->response->fields, in nxt_java_Response_getHeaderNames()
557 f = nxt_java_findHeader(resp->fields, resp->fields + resp->fields_count, in nxt_java_Response_getHeaders()
563 f = resp->fields + resp->fields_count; in nxt_java_Response_getHeaders()
567 f - resp->fields); in nxt_java_Response_getHeaders()
681 f = resp->fields; in nxt_java_response_set_header()
803 f = resp->fields; in nxt_java_response_remove_header()
[all …]
/unit/src/nodejs/unit-http/
H A Dunit.cpp600 append_header(r->fields + i, headers, raw_headers, i); in create_headers()
867 f = req->response->fields + req->response->fields_count; in response_send_headers()
893 f = req->response->fields + req->response->fields_count; in response_send_headers()
/unit/src/
H A Dnxt_controller.c790 rc = nxt_http_fields_process(r->parser.fields, &nxt_controller_fields_hash, in nxt_controller_conn_read()
H A Dnxt_h1proto.c656 r->fields = h1p->parser.fields; in nxt_h1p_header_process()
658 ret = nxt_http_fields_process(r->fields, &nxt_h1p_fields_hash, r); in nxt_h1p_header_process()
1307 nxt_list_each(field, r->resp.fields) { in nxt_h1p_request_header_send()
1328 nxt_list_each(field, r->resp.fields) { in nxt_h1p_request_header_send()
1599 if (r->fields == NULL) { in nxt_h1p_conn_request_error()
1635 if (r->fields == NULL) { in nxt_h1p_conn_request_timeout()
2270 nxt_list_each(field, r->fields) { in nxt_h1p_peer_header_send()
2293 nxt_list_each(field, r->fields) { in nxt_h1p_peer_header_send()
2523 peer->fields = peer->proto.h1->parser.fields; in nxt_h1p_peer_header_read_done()
2525 ret = nxt_http_fields_process(peer->fields, in nxt_h1p_peer_header_read_done()
H A Dnxt_http.h108 nxt_list_t *fields; member
122 nxt_list_t *fields; member
156 nxt_list_t *fields; member
H A Dnxt_http_error.c43 r->resp.fields = nxt_list_create(r->mem_pool, 8, sizeof(nxt_http_field_t)); in nxt_http_request_error()
44 if (nxt_slow_path(r->resp.fields == NULL)) { in nxt_http_request_error()
48 content_type = nxt_list_zero_add(r->resp.fields); in nxt_http_request_error()
H A Dnxt_http_js.c213 nxt_list_each(f, r->fields) { in nxt_http_js_ext_get_header()
H A Dnxt_http_parse.c114 rp->fields = nxt_list_create(mp, 8, sizeof(nxt_http_field_t)); in nxt_http_parse_request_init()
115 if (nxt_slow_path(rp->fields == NULL)) { in nxt_http_parse_request_init()
798 field = nxt_list_add(rp->fields); in nxt_http_parse_field_end()
1260 nxt_http_fields_process(nxt_list_t *fields, nxt_lvlhsh_t *hash, void *ctx) in nxt_http_fields_process() argument
1265 nxt_list_each(field, fields) { in nxt_http_fields_process()
H A Dnxt_http_parse.h50 nxt_list_t *fields; member
126 nxt_int_t nxt_http_fields_process(nxt_list_t *fields, nxt_lvlhsh_t *hash,
H A Dnxt_http_proxy.c260 nxt_list_each(field, peer->fields) { in nxt_http_proxy_header_read()
267 f = nxt_list_add(r->resp.fields); in nxt_http_proxy_header_read()
H A Dnxt_http_request.c16 nxt_http_forward_t *forward, nxt_array_t *fields);
261 if (nxt_slow_path(r->resp.fields == NULL)) { in nxt_http_request_create()
371 nxt_list_each(f, r->fields) { in nxt_http_request_forward()
379 fields = nxt_array_add(client_ip_fields); in nxt_http_request_forward()
380 if (nxt_slow_path(fields == NULL)) { in nxt_http_request_forward()
384 *fields = f; in nxt_http_request_forward()
421 f = (nxt_http_field_t **) fields->elts; in nxt_http_request_forward_client_ip()
423 i = fields->nelts; in nxt_http_request_forward_client_ip()
633 server = nxt_list_zero_add(r->resp.fields); in nxt_http_request_header_send()
641 date = nxt_list_zero_add(r->resp.fields); in nxt_http_request_header_send()
[all …]
H A Dnxt_http_return.c196 field = nxt_list_zero_add(r->resp.fields); in nxt_http_return_send_ready()
H A Dnxt_http_route.c1889 nxt_list_each(f, r->fields) { in nxt_http_route_header()
H A Dnxt_http_static.c516 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
533 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
562 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
610 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
H A Dnxt_http_variables.c455 nxt_list_each(f, r->fields) { in nxt_http_var_header()
H A Dnxt_php_sapi.c1135 f = r->fields + r->content_type_field;
1141 f = r->fields + r->cookie_field;
1147 f = r->fields + r->authorization_field;
1461 f_end = r->fields + r->fields_count;
1462 for (f = r->fields; f < f_end; f++) {
1470 f = r->fields + r->content_length_field;
1477 f = r->fields + r->content_type_field;
H A Dnxt_router.c3930 for (f = resp->fields; f < resp->fields + resp->fields_count; f++) { in nxt_router_response_ready_handler()
3935 field = nxt_list_add(r->resp.fields); in nxt_router_response_ready_handler()
3961 r->resp.fields->last->nelts--; in nxt_router_response_ready_handler()
5163 nxt_fields_first(nxt_list_t *fields, nxt_fields_iter_t *i) in nxt_fields_first() argument
5165 return nxt_fields_part_first(nxt_list_part(fields), i); in nxt_fields_first()
5212 nxt_list_each(field, r->fields) { in nxt_router_prepare_msg()
5241 p = (u_char *) (req->fields + fields_count); in nxt_router_prepare_msg()
5312 dst_field = req->fields; in nxt_router_prepare_msg()
5314 for (field = nxt_fields_first(r->fields, &iter); in nxt_router_prepare_msg()
5334 req->cookie_field = dst_field - req->fields; in nxt_router_prepare_msg()
[all …]
H A Dnxt_unit.c1948 nxt_unit_field_t *fields, f; in nxt_unit_request_group_dup_fields() local
1958 fields = r->fields; in nxt_unit_request_group_dup_fields()
1963 switch (fields[i].hash) { in nxt_unit_request_group_dup_fields()
1996 if (fields[i].hash != fields[j].hash in nxt_unit_request_group_dup_fields()
1997 || fields[i].name_length != fields[j].name_length in nxt_unit_request_group_dup_fields()
2005 f = fields[j]; in nxt_unit_request_group_dup_fields()
2009 fields[j] = fields[j - 1]; in nxt_unit_request_group_dup_fields()
2015 fields[j] = f; in nxt_unit_request_group_dup_fields()
2152 f = resp->fields; in nxt_unit_response_realloc()
2155 src = req->response->fields + i; in nxt_unit_response_realloc()
[all …]

12