Home
last modified time | relevance | path

Searched refs:field (Results 1 – 17 of 17) sorted by relevance

/unit/src/
H A Dnxt_http_response.c11 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 Dnxt_http_proxy.c250 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 Dnxt_http_parse.h75 nxt_http_field_t *field,
136 nxt_http_field_process(nxt_http_field_t *field, nxt_lvlhsh_t *hash, void *ctx) in nxt_http_field_process() argument
143 lhq.key_hash = field->hash; in nxt_http_field_process()
144 lhq.key.length = field->name_length; in nxt_http_field_process()
145 lhq.key.start = field->name; in nxt_http_field_process()
153 return proc->handler(ctx, field, proc->data); in nxt_http_field_process()
H A Dnxt_http_return.c173 nxt_http_field_t *field; in nxt_http_return_send_ready() local
189 field = nxt_list_zero_add(r->resp.fields); in nxt_http_return_send_ready()
190 if (nxt_slow_path(field == NULL)) { in nxt_http_return_send_ready()
194 nxt_http_field_name_set(field, "Location"); in nxt_http_return_send_ready()
196 field->value = ctx->encoded.start; in nxt_http_return_send_ready()
197 field->value_length = ctx->encoded.length; in nxt_http_return_send_ready()
H A Dnxt_h1proto.c744 field->hopbyhop = 1; in nxt_h1p_connection()
806 && field->value[0] == '1' && field->value[1] == '3') in nxt_h1p_websocket_version()
822 field->skip = 1; in nxt_h1p_transfer_encoding()
823 field->hopbyhop = 1; in nxt_h1p_transfer_encoding()
1310 size += field->name_length + field->value_length; in nxt_h1p_request_header_send()
1331 p = nxt_cpymem(p, field->name, field->name_length); in nxt_h1p_request_header_send()
1333 p = nxt_cpymem(p, field->value, field->value_length); in nxt_h1p_request_header_send()
2272 size += field->name_length + field->value_length; in nxt_h1p_peer_header_send()
2295 p = nxt_cpymem(p, field->name, field->name_length); in nxt_h1p_peer_header_send()
2297 p = nxt_cpymem(p, field->value, field->value_length); in nxt_h1p_peer_header_send()
[all …]
H A Dnxt_http_static.c305 nxt_http_field_t *field; in nxt_http_static_send_ready() local
510 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
523 field->value = p; in nxt_http_static_send_ready()
527 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
531 nxt_http_field_name_set(field, "ETag"); in nxt_http_static_send_ready()
540 field->value = p; in nxt_http_static_send_ready()
556 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
562 field->value = mtype->start; in nxt_http_static_send_ready()
604 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
622 field->value = p; in nxt_http_static_send_ready()
[all …]
H A Dnxt_http_parse.c777 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 Dnxt_http_request.c20 nxt_http_field_t *field);
93 host.length = field->value_length; in nxt_http_request_host()
94 host.start = field->value; in nxt_http_request_host()
206 nxt_value_at(nxt_http_field_t *, r, offset) = field; in nxt_http_request_field()
222 r->content_length = field; in nxt_http_request_content_length()
224 n = nxt_off_t_parse(field->value, field->value_length); in nxt_http_request_content_length()
507 nxt_http_field_t *field) in nxt_http_request_forward_protocol() argument
509 if (field->value_length == 4) { in nxt_http_request_forward_protocol()
514 } else if (field->value_length == 5) { in nxt_http_request_forward_protocol()
519 } else if (field->value_length == 2) { in nxt_http_request_forward_protocol()
[all …]
H A Dnxt_http.h330 nxt_int_t nxt_http_request_host(void *ctx, nxt_http_field_t *field,
332 nxt_int_t nxt_http_request_field(void *ctx, nxt_http_field_t *field,
334 nxt_int_t nxt_http_request_content_length(void *ctx, nxt_http_field_t *field,
392 nxt_int_t nxt_http_proxy_date(void *ctx, nxt_http_field_t *field,
394 nxt_int_t nxt_http_proxy_content_length(void *ctx, nxt_http_field_t *field,
396 nxt_int_t nxt_http_proxy_skip(void *ctx, nxt_http_field_t *field,
H A Dnxt_clang.h201 #define nxt_container_of(p, type, field) \ argument
202 (type *) ((u_char *) (p) - offsetof(type, field))
H A Dnxt_router.c4259 field = NULL; in nxt_router_response_ready_handler()
4288 (size_t) field->name_length, field->name, in nxt_router_response_ready_handler()
4289 (size_t) field->value_length, field->value); in nxt_router_response_ready_handler()
5489 return i->field; in nxt_fields_part_first()
5506 i->field++; in nxt_fields_next()
5666 (int) field->hash, (int) field->skip, in nxt_router_prepare_msg()
5667 (int) field->name_length, field->name, in nxt_router_prepare_msg()
5668 (int) field->value_length, field->value); in nxt_router_prepare_msg()
5674 end = field->name + field->name_length; in nxt_router_prepare_msg()
5693 p = nxt_cpymem(p, field->name, field->name_length); in nxt_router_prepare_msg()
[all …]
H A Dnxt_controller.c81 nxt_http_field_t *field, uintptr_t data);
996 nxt_controller_request_content_length(void *ctx, nxt_http_field_t *field, in nxt_controller_request_content_length() argument
1004 length = nxt_off_t_parse(field->value, field->value_length); in nxt_controller_request_content_length()
/unit/src/python/
H A Dnxt_python_wsgi.c67 nxt_unit_field_t *field, int n, uint32_t vl);
726 nxt_python_add_field(nxt_python_ctx_t *pctx, nxt_unit_field_t *field, int n, in nxt_python_add_field() argument
732 src = nxt_unit_sptr_get(&field->name); in nxt_python_add_field()
734 name = nxt_python_field_name(src, field->name_length); in nxt_python_add_field()
738 (int) field->name_length, src); in nxt_python_add_field()
744 value = nxt_python_field_value(field, n, vl); in nxt_python_add_field()
749 (int) field->value_length, in nxt_python_add_field()
750 (char *) nxt_unit_sptr_get(&field->value)); in nxt_python_add_field()
/unit/test/unit/
H A Dhttp.py319 for field, value in fields.items():
343 field,
/unit/src/test/
H A Dnxt_http_parse_test.c61 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/cc/
H A Dtest192 # 1506-159 (E) Bit field type specified for XXX is not valid.
/unit/
H A DCHANGES88 field.
238 HTTP header field names.
261 characters in the field name.
716 *) Change: UTF-8 characters are now allowed in request header field