Home
last modified time | relevance | path

Searched refs:field (Results 1 – 20 of 20) 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_variables.c19 uint16_t field);
21 uint16_t field);
39 uint16_t field);
120 uint16_t field) in nxt_http_var_request_time() argument
161 uint16_t field) in nxt_http_var_request_uri() argument
201 uint16_t field) in nxt_http_var_remote_addr() argument
216 uint16_t field) in nxt_http_var_time_local() argument
274 uint16_t field) in nxt_http_var_request_line() argument
317 uint16_t field) in nxt_http_var_body_bytes_sent() argument
359 uint16_t field) in nxt_http_var_referer() 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_var.c119 uint16_t field; in nxt_var_decl_get() local
125 field = 0; in nxt_var_decl_get()
161 field = f->index; in nxt_var_decl_get()
183 nxt_var_field_t *field; in nxt_var_field_add() local
185 field = fields->elts; in nxt_var_field_add()
191 return field; in nxt_var_field_add()
200 field->name = *name; in nxt_var_field_add()
201 field->hash = hash; in nxt_var_field_add()
204 return field; in nxt_var_field_add()
212 nxt_var_field_t *field; in nxt_var_field_get() local
[all …]
H A Dnxt_http_return.c180 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 Dnxt_http_static.c312 nxt_http_field_t *field; in nxt_http_static_send_ready() local
517 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
530 field->value = p; in nxt_http_static_send_ready()
534 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
538 nxt_http_field_name_set(field, "ETag"); in nxt_http_static_send_ready()
547 field->value = p; in nxt_http_static_send_ready()
563 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
569 field->value = mtype->start; in nxt_http_static_send_ready()
611 if (nxt_slow_path(field == NULL)) { in nxt_http_static_send_ready()
629 field->value = p; in nxt_http_static_send_ready()
[all …]
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()
2273 size += field->name_length + field->value_length; in nxt_h1p_peer_header_send()
2296 p = nxt_cpymem(p, field->name, field->name_length); in nxt_h1p_peer_header_send()
2298 p = nxt_cpymem(p, field->value, field->value_length); in nxt_h1p_peer_header_send()
[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()
513 nxt_http_field_t *field) in nxt_http_request_forward_protocol() argument
515 if (field->value_length == 4) { in nxt_http_request_forward_protocol()
520 } else if (field->value_length == 5) { in nxt_http_request_forward_protocol()
525 } else if (field->value_length == 2) { in nxt_http_request_forward_protocol()
[all …]
H A Dnxt_http.h333 nxt_int_t nxt_http_request_host(void *ctx, nxt_http_field_t *field,
335 nxt_int_t nxt_http_request_field(void *ctx, nxt_http_field_t *field,
337 nxt_int_t nxt_http_request_content_length(void *ctx, nxt_http_field_t *field,
398 nxt_int_t nxt_http_proxy_date(void *ctx, nxt_http_field_t *field,
400 nxt_int_t nxt_http_proxy_content_length(void *ctx, nxt_http_field_t *field,
402 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.c3928 field = NULL; in nxt_router_response_ready_handler()
3957 (size_t) field->name_length, field->name, in nxt_router_response_ready_handler()
3958 (size_t) field->value_length, field->value); in nxt_router_response_ready_handler()
5158 return i->field; in nxt_fields_part_first()
5175 i->field++; in nxt_fields_next()
5341 (int) field->hash, (int) field->skip, in nxt_router_prepare_msg()
5342 (int) field->name_length, field->name, in nxt_router_prepare_msg()
5343 (int) field->value_length, field->value); in nxt_router_prepare_msg()
5349 end = field->name + field->name_length; in nxt_router_prepare_msg()
5368 p = nxt_cpymem(p, field->name, field->name_length); in nxt_router_prepare_msg()
[all …]
H A Dnxt_var.h16 void *ctx, uint16_t field);
H A Dnxt_controller.c82 nxt_http_field_t *field, uintptr_t data);
1012 nxt_controller_request_content_length(void *ctx, nxt_http_field_t *field, in nxt_controller_request_content_length() argument
1020 length = nxt_off_t_parse(field->value, field->value_length); in nxt_controller_request_content_length()
/unit/src/python/
H A Dnxt_python_wsgi.c71 nxt_unit_field_t *field, int n, uint32_t vl);
744 nxt_python_add_field(nxt_python_ctx_t *pctx, nxt_unit_field_t *field, int n, in nxt_python_add_field() argument
750 src = nxt_unit_sptr_get(&field->name); in nxt_python_add_field()
752 name = nxt_python_field_name(src, field->name_length); in nxt_python_add_field()
756 (int) field->name_length, src); in nxt_python_add_field()
762 value = nxt_python_field_value(field, n, vl); in nxt_python_add_field()
767 (int) field->value_length, in nxt_python_add_field()
768 (char *) nxt_unit_sptr_get(&field->value)); in nxt_python_add_field()
/unit/test/unit/
H A Dhttp.py322 for field, value in fields.items():
346 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 DCHANGES127 field.
277 HTTP header field names.
300 characters in the field name.
755 *) Change: UTF-8 characters are now allowed in request header field