Home
last modified time | relevance | path

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

12

/unit/
H A DCHANGES240 *) Change: HTTP header fields with underscores ("_") are now discarded
260 discarding request header fields with irregular (but still valid)
625 *) Bugfix: names of response header fields in Node.js module were
710 *) Bugfix: header fields values with non-ASCII bytes might be handled
800 *) 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()
866 f = req->response->fields + req->response->fields_count; in response_send_headers()
892 f = req->response->fields + req->response->fields_count; in response_send_headers()
/unit/src/
H A Dnxt_controller.c774 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()
2269 nxt_list_each(field, r->fields) { in nxt_h1p_peer_header_send()
2292 nxt_list_each(field, r->fields) { in nxt_h1p_peer_header_send()
2522 peer->fields = peer->proto.h1->parser.fields; in nxt_h1p_peer_header_read_done()
2524 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
154 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_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()
365 nxt_list_each(f, r->fields) { in nxt_http_request_forward()
373 fields = nxt_array_add(client_ip_fields); in nxt_http_request_forward()
374 if (nxt_slow_path(fields == NULL)) { in nxt_http_request_forward()
378 *fields = f; in nxt_http_request_forward()
415 f = (nxt_http_field_t **) fields->elts; in nxt_http_request_forward_client_ip()
417 i = fields->nelts; in nxt_http_request_forward_client_ip()
627 server = nxt_list_zero_add(r->resp.fields); in nxt_http_request_header_send()
635 date = nxt_list_zero_add(r->resp.fields); in nxt_http_request_header_send()
[all …]
H A Dnxt_http_return.c189 field = nxt_list_zero_add(r->resp.fields); in nxt_http_return_send_ready()
H A Dnxt_http_route.c1874 nxt_list_each(f, r->fields) { in nxt_http_route_header()
H A Dnxt_http_static.c509 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
526 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
555 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
603 field = nxt_list_zero_add(r->resp.fields); in nxt_http_static_send_ready()
H A Dnxt_php_sapi.c1057 f = r->fields + r->content_type_field;
1063 f = r->fields + r->cookie_field;
1069 f = r->fields + r->authorization_field;
1379 f_end = r->fields + r->fields_count;
1380 for (f = r->fields; f < f_end; f++) {
1388 f = r->fields + r->content_length_field;
1395 f = r->fields + r->content_type_field;
H A Dnxt_router.c4261 for (f = resp->fields; f < resp->fields + resp->fields_count; f++) { in nxt_router_response_ready_handler()
4266 field = nxt_list_add(r->resp.fields); in nxt_router_response_ready_handler()
4292 r->resp.fields->last->nelts--; in nxt_router_response_ready_handler()
5494 nxt_fields_first(nxt_list_t *fields, nxt_fields_iter_t *i) in nxt_fields_first() argument
5496 return nxt_fields_part_first(nxt_list_part(fields), i); in nxt_fields_first()
5543 nxt_list_each(field, r->fields) { in nxt_router_prepare_msg()
5572 p = (u_char *) (req->fields + fields_count); in nxt_router_prepare_msg()
5637 dst_field = req->fields; in nxt_router_prepare_msg()
5639 for (field = nxt_fields_first(r->fields, &iter); in nxt_router_prepare_msg()
5659 req->cookie_field = dst_field - req->fields; in nxt_router_prepare_msg()
[all …]
H A Dnxt_unit.c1934 nxt_unit_field_t *fields, f; in nxt_unit_request_group_dup_fields() local
1944 fields = r->fields; in nxt_unit_request_group_dup_fields()
1949 switch (fields[i].hash) { in nxt_unit_request_group_dup_fields()
1982 if (fields[i].hash != fields[j].hash in nxt_unit_request_group_dup_fields()
1983 || fields[i].name_length != fields[j].name_length in nxt_unit_request_group_dup_fields()
1991 f = fields[j]; in nxt_unit_request_group_dup_fields()
1995 fields[j] = fields[j - 1]; in nxt_unit_request_group_dup_fields()
2001 fields[j] = f; in nxt_unit_request_group_dup_fields()
2138 f = resp->fields; in nxt_unit_response_realloc()
2141 src = req->response->fields + i; in nxt_unit_response_realloc()
[all …]
H A Dnxt_unit_request.h48 nxt_unit_field_t fields[]; member
H A Dnxt_unit_response.h23 nxt_unit_field_t fields[]; member

12