/unit/src/ |
H A D | nxt_http_response.c | 11 static nxt_int_t nxt_http_response_status(void *ctx, nxt_http_field_t *field, 13 static nxt_int_t nxt_http_response_skip(void *ctx, nxt_http_field_t *field, 15 static nxt_int_t nxt_http_response_field(void *ctx, nxt_http_field_t *field, 45 nxt_http_response_status(void *ctx, nxt_http_field_t *field, in nxt_http_response_status() argument 53 field->skip = 1; in nxt_http_response_status() 55 if (field->value_length >= 3) { in nxt_http_response_status() 56 status = nxt_int_parse(field->value, 3); in nxt_http_response_status() 69 nxt_http_response_skip(void *ctx, nxt_http_field_t *field, uintptr_t data) in nxt_http_response_skip() argument 71 field->skip = 1; in nxt_http_response_skip() 78 nxt_http_response_field(void *ctx, nxt_http_field_t *field, uintptr_t offset) in nxt_http_response_field() argument [all …]
|
H A D | nxt_http_proxy.c | 250 nxt_http_field_t *f, *field; in nxt_http_proxy_header_read() local 260 nxt_list_each(field, peer->fields) { in nxt_http_proxy_header_read() 263 (size_t) field->name_length, field->name, in nxt_http_proxy_header_read() 264 (size_t) field->value_length, field->value); in nxt_http_proxy_header_read() 266 if (!field->skip) { in nxt_http_proxy_header_read() 273 *f = *field; in nxt_http_proxy_header_read() 399 r->resp.date = field; in nxt_http_proxy_date() 406 nxt_http_proxy_content_length(void *ctx, nxt_http_field_t *field, in nxt_http_proxy_content_length() argument 414 r->resp.content_length = field; in nxt_http_proxy_content_length() 416 n = nxt_off_t_parse(field->value, field->value_length); in nxt_http_proxy_content_length() [all …]
|
H A D | nxt_http_parse.h | 76 nxt_http_field_t *field, 138 nxt_http_field_process(nxt_http_field_t *field, nxt_lvlhsh_t *hash, void *ctx) in nxt_http_field_process() argument 145 lhq.key_hash = field->hash; in nxt_http_field_process() 146 lhq.key.length = field->name_length; in nxt_http_field_process() 147 lhq.key.start = field->name; in nxt_http_field_process() 155 return proc->handler(ctx, field, proc->data); in nxt_http_field_process()
|
H A D | nxt_http_return.c | 180 nxt_http_field_t *field; in nxt_http_return_send_ready() local 196 field = nxt_list_zero_add(r->resp.fields); in nxt_http_return_send_ready() 197 if (nxt_slow_path(field == NULL)) { in nxt_http_return_send_ready() 201 nxt_http_field_name_set(field, "Location"); in nxt_http_return_send_ready() 203 field->value = ctx->encoded.start; in nxt_http_return_send_ready() 204 field->value_length = ctx->encoded.length; in nxt_http_return_send_ready()
|
H A D | nxt_http_static.c | 313 nxt_http_field_t *field; in nxt_http_static_send_ready() local 518 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready() 531 field->value = p; in nxt_http_static_send_ready() 535 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready() 539 nxt_http_field_name_set(field, "ETag"); in nxt_http_static_send_ready() 548 field->value = p; in nxt_http_static_send_ready() 564 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready() 570 field->value = mtype->start; in nxt_http_static_send_ready() 612 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready() 630 field->value = p; in nxt_http_static_send_ready() [all …]
|
H A D | nxt_h1proto.c | 754 field->hopbyhop = 1; in nxt_h1p_connection() 816 && field->value[0] == '1' && field->value[1] == '3') in nxt_h1p_websocket_version() 832 field->skip = 1; in nxt_h1p_transfer_encoding() 833 field->hopbyhop = 1; in nxt_h1p_transfer_encoding() 1320 size += field->name_length + field->value_length; in nxt_h1p_request_header_send() 1341 p = nxt_cpymem(p, field->name, field->name_length); in nxt_h1p_request_header_send() 1343 p = nxt_cpymem(p, field->value, field->value_length); in nxt_h1p_request_header_send() 2283 size += field->name_length + field->value_length; in nxt_h1p_peer_header_send() 2306 p = nxt_cpymem(p, field->name, field->name_length); in nxt_h1p_peer_header_send() 2308 p = nxt_cpymem(p, field->value, field->value_length); in nxt_h1p_peer_header_send() [all …]
|
H A D | nxt_http_parse.c | 777 nxt_http_field_t *field; in nxt_http_parse_field_end() local 798 field = nxt_list_add(rp->fields); in nxt_http_parse_field_end() 800 if (nxt_slow_path(field == NULL)) { in nxt_http_parse_field_end() 805 field->skip = 0; in nxt_http_parse_field_end() 806 field->hopbyhop = 0; in nxt_http_parse_field_end() 810 field->name = rp->field_name.start; in nxt_http_parse_field_end() 811 field->value = rp->field_value.start; in nxt_http_parse_field_end() 1160 nxt_http_field_proc_t *field; in nxt_http_field_hash_test() local 1162 field = data; in nxt_http_field_hash_test() 1263 nxt_http_field_t *field; in nxt_http_fields_process() local [all …]
|
H A D | nxt_var.c | 175 nxt_var_field_t *field; in nxt_var_field_new() local 177 field = nxt_mp_alloc(mp, sizeof(nxt_var_field_t)); in nxt_var_field_new() 178 if (nxt_slow_path(field == NULL)) { in nxt_var_field_new() 182 str = nxt_str_dup(mp, &field->name, name); in nxt_var_field_new() 187 field->hash = hash; in nxt_var_field_new() 189 return field; in nxt_var_field_new() 197 nxt_var_field_t *field; in nxt_var_field_get() local 199 field = fields->elts; in nxt_var_field_get() 203 return &field[index]; in nxt_var_field_get()
|
H A D | nxt_http_request.c | 20 nxt_http_field_t *field); 95 host.length = field->value_length; in nxt_http_request_host() 96 host.start = field->value; in nxt_http_request_host() 208 nxt_value_at(nxt_http_field_t *, r, offset) = field; in nxt_http_request_field() 224 r->content_length = field; in nxt_http_request_content_length() 226 n = nxt_off_t_parse(field->value, field->value_length); in nxt_http_request_content_length() 515 nxt_http_field_t *field) in nxt_http_request_forward_protocol() argument 517 if (field->value_length == 4) { in nxt_http_request_forward_protocol() 522 } else if (field->value_length == 5) { in nxt_http_request_forward_protocol() 527 } else if (field->value_length == 2) { in nxt_http_request_forward_protocol() [all …]
|
H A D | nxt_http.h | 341 nxt_int_t nxt_http_request_host(void *ctx, nxt_http_field_t *field, 343 nxt_int_t nxt_http_request_field(void *ctx, nxt_http_field_t *field, 345 nxt_int_t nxt_http_request_content_length(void *ctx, nxt_http_field_t *field, 414 nxt_int_t nxt_http_proxy_date(void *ctx, nxt_http_field_t *field, 416 nxt_int_t nxt_http_proxy_content_length(void *ctx, nxt_http_field_t *field, 418 nxt_int_t nxt_http_proxy_skip(void *ctx, nxt_http_field_t *field,
|
H A D | nxt_clang.h | 201 #define nxt_container_of(p, type, field) \ argument 202 (type *) ((u_char *) (p) - offsetof(type, field))
|
H A D | nxt_router.c | 4128 field = NULL; in nxt_router_response_ready_handler() 4157 (size_t) field->name_length, field->name, in nxt_router_response_ready_handler() 4158 (size_t) field->value_length, field->value); in nxt_router_response_ready_handler() 5358 return i->field; in nxt_fields_part_first() 5375 i->field++; in nxt_fields_next() 5542 (int) field->hash, (int) field->skip, in nxt_router_prepare_msg() 5543 (int) field->name_length, field->name, in nxt_router_prepare_msg() 5544 (int) field->value_length, field->value); in nxt_router_prepare_msg() 5550 end = field->name + field->name_length; in nxt_router_prepare_msg() 5569 p = nxt_cpymem(p, field->name, field->name_length); in nxt_router_prepare_msg() [all …]
|
H A D | nxt_http_variables.c | 720 nxt_http_field_name_cmp(nxt_str_t *name, nxt_http_field_t *field) in nxt_http_field_name_cmp() argument 725 if (name->length != field->name_length) { in nxt_http_field_name_cmp() 731 c2 = field->name[i]; in nxt_http_field_name_cmp()
|
H A D | nxt_controller.c | 83 nxt_http_field_t *field, uintptr_t data); 1037 nxt_controller_request_content_length(void *ctx, nxt_http_field_t *field, in nxt_controller_request_content_length() argument 1045 length = nxt_off_t_parse(field->value, field->value_length); in nxt_controller_request_content_length()
|
/unit/src/wasm-wasi-component/src/ |
H A D | lib.rs | 487 let field = (*raw).fields.as_ptr().add(i as usize); in fields() 489 self.get_str(&(*field).name, (*field).name_length.into()); in fields() 491 self.get_str(&(*field).value, (*field).value_length.into()); in fields()
|
/unit/src/python/ |
H A D | nxt_python_wsgi.c | 72 nxt_unit_field_t *field, int n, uint32_t vl); 767 nxt_python_add_field(nxt_python_ctx_t *pctx, nxt_unit_field_t *field, int n, in nxt_python_add_field() argument 773 src = nxt_unit_sptr_get(&field->name); in nxt_python_add_field() 775 name = nxt_python_field_name(src, field->name_length); in nxt_python_add_field() 779 (int) field->name_length, src); in nxt_python_add_field() 785 value = nxt_python_field_value(field, n, vl); in nxt_python_add_field() 790 (int) field->value_length, in nxt_python_add_field() 791 (char *) nxt_unit_sptr_get(&field->value)); in nxt_python_add_field()
|
/unit/src/ruby/ |
H A D | nxt_ruby.c | 977 char *field, *p; in nxt_ruby_hash_add() local 987 field = nxt_unit_malloc(NULL, len); in nxt_ruby_hash_add() 988 if (field == NULL) { in nxt_ruby_hash_add() 992 p = field; in nxt_ruby_hash_add() 1007 field, len); in nxt_ruby_hash_add() 1008 nxt_unit_free(NULL, field); in nxt_ruby_hash_add()
|
/unit/src/test/ |
H A D | nxt_http_parse_test.c | 61 static nxt_int_t nxt_http_test_header_return(void *ctx, nxt_http_field_t *field, 816 nxt_http_test_header_return(void *ctx, nxt_http_field_t *field, uintptr_t data) in nxt_http_test_header_return() argument
|
/unit/auto/modules/ |
H A D | wasm | 67 -Wno-missing-field-initializers \
|
/unit/ |
H A D | CHANGES | 32 *) Bugfix: HTTP header field value encoding could be misinterpreted in 120 "Server" header field. 122 *) Bugfix: request header field values could be corrupted in some cases; 316 field. 466 HTTP header field names. 489 characters in the field name. 944 *) Change: UTF-8 characters are now allowed in request header field
|
/unit/auto/cc/ |
H A D | test | 192 # 1506-159 (E) Bit field type specified for XXX is not valid.
|
/unit/test/unit/ |
H A D | http.py | 320 for field, value in fields.items():
|
/unit/docs/ |
H A D | unit-openapi.yaml | 2493 summary: "Enables recursive header field traversal" 2497 summary: "Disables recursive header field traversal" 2524 summary: "Enables recursive header field traversal" 2528 summary: "Disables recursive header field traversal" 3591 Unit's [Server header field versioning] 5840 description: "Host header field." 6130 description: "Defines the relevant HTTP header field to expect in the
|