Home
last modified time | relevance | path

Searched refs:name_length (Results 1 – 24 of 24) sorted by relevance

/unit/src/java/
H A Dnxt_jni_HeaderNamesEnumeration.c102 && f[pos].name_length == f[pos - 1].name_length) in nxt_java_HeaderNamesEnumeration_nextElementPos()
125 && f[pos].name_length == f[pos - 1].name_length) in nxt_java_HeaderNamesEnumeration_nextElement()
140 tmp = name[f->name_length]; in nxt_java_HeaderNamesEnumeration_nextElement()
143 name[f->name_length] = '\0'; in nxt_java_HeaderNamesEnumeration_nextElement()
149 name[f->name_length] = tmp; in nxt_java_HeaderNamesEnumeration_nextElement()
H A Dnxt_jni_HeadersEnumeration.c104 || f->name_length != init_field->name_length) in nxt_java_HeadersEnumeration_nextElementPos()
111 init_field->name_length)) in nxt_java_HeadersEnumeration_nextElementPos()
139 || f->name_length != init_field->name_length) in nxt_java_HeadersEnumeration_nextElement()
H A Dnxt_jni.c113 if (f->skip != 0 || f->name_length != name_len) { in nxt_java_findHeader()
H A Dnxt_jni_Response.c401 f->name_length = name_len; in nxt_java_add_int_header()
/unit/src/
H A Dnxt_http_request.c857 size_t name_length; in nxt_http_arguments_parse() local
875 name_length = 0; in nxt_http_arguments_parse()
893 name_length = dst - dst_start; in nxt_http_arguments_parse()
910 name_length = 0; in nxt_http_arguments_parse()
976 name_length = length; in nxt_http_argument()
981 nv->name_length = name_length; in nxt_http_argument()
1009 || f->name_length != 6 in nxt_http_cookies_parse()
1032 size_t name_length; in nxt_http_cookie_parse() local
1037 name_length = 0; in nxt_http_cookie_parse()
1045 name_length = p - start; in nxt_http_cookie_parse()
[all …]
H A Dnxt_http_js.c178 if (key.length == nv->name_length in nxt_http_js_ext_get_arg()
179 && memcmp(key.start, nv->name, nv->name_length) == 0) in nxt_http_js_ext_get_arg()
215 if (key.length == f->name_length in nxt_http_js_ext_get_header()
216 && memcmp(key.start, f->name, f->name_length) == 0) in nxt_http_js_ext_get_header()
262 if (key.length == nv->name_length in nxt_http_js_ext_get_cookie()
263 && memcmp(key.start, nv->name, nv->name_length) == 0) in nxt_http_js_ext_get_cookie()
H A Dnxt_unit_field.h26 uint8_t name_length; member
H A Dnxt_http_parse.h90 uint8_t name_length; member
144 lhq.key.length = field->name_length; in nxt_http_field_process()
H A Dnxt_http_variables.c423 && vf->name.length == nv->name_length in nxt_http_var_arg()
424 && memcmp(vf->name.start, nv->name, nv->name_length) == 0) in nxt_http_var_arg()
458 && vf->name.length == f->name_length in nxt_http_var_header()
459 && nxt_strncasecmp(vf->name.start, f->name, f->name_length) == 0) in nxt_http_var_header()
501 && vf->name.length == nv->name_length in nxt_http_var_cookie()
502 && memcmp(vf->name.start, nv->name, nv->name_length) == 0) in nxt_http_var_cookie()
H A Dnxt_unit.h246 uint16_t nxt_unit_field_hash(const char* name, size_t name_length);
250 char **name, uint32_t *name_length, char **port, uint32_t *port_length);
269 const char* name, uint8_t name_length,
H A Dnxt_http.h93 (_field)->name_length = nxt_length(_name); \
100 (_field)->name_length = nxt_length(_name); \
206 uint16_t name_length; member
H A Dnxt_http_route.c84 uint16_t name_length; member
1892 || rule->u.name.length != f->name_length in nxt_http_route_header()
1893 || nxt_strncasecmp(rule->u.name.start, f->name, f->name_length) in nxt_http_route_header()
1943 && rule->u.name.length == nv->name_length in nxt_http_route_test_argument()
1944 && memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_argument()
2021 && rule->u.name.length == nv->name_length in nxt_http_route_test_cookie()
2022 && memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_cookie()
H A Dnxt_unit.c1923 nxt_unit_field_hash(const char *name, size_t name_length) in nxt_unit_field_hash() argument
1930 end = name + name_length; in nxt_unit_field_hash()
1985 if (fields[i].name_length == cookie.length in nxt_unit_request_group_dup_fields()
1997 || fields[i].name_length != fields[j].name_length in nxt_unit_request_group_dup_fields()
2181 f->name_length = src->name_length; in nxt_unit_response_realloc()
2238 const char *name, uint8_t name_length, in nxt_unit_response_add_field() argument
2266 if (nxt_slow_path(name_length + value_length + 2 in nxt_unit_response_add_field()
2276 (int) name_length, name, in nxt_unit_response_add_field()
2282 buf->free = nxt_cpymem(buf->free, name, name_length); in nxt_unit_response_add_field()
2289 f->hash = nxt_unit_field_hash(name, name_length); in nxt_unit_response_add_field()
[all …]
H A Dnxt_http_proxy.c263 (size_t) field->name_length, field->name, in nxt_http_proxy_header_read()
H A Dnxt_router.c3945 field->name_length = f->name_length; in nxt_router_response_ready_handler()
3957 (size_t) field->name_length, field->name, in nxt_router_response_ready_handler()
5215 req_size += field->name_length + prefix->length + 1 in nxt_router_prepare_msg()
5324 dst_field->name_length = field->name_length + prefix->length; in nxt_router_prepare_msg()
5342 (int) field->name_length, field->name, 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()
5383 if (dup->name_length != field->name_length in nxt_router_prepare_msg()
5386 || nxt_memcasecmp(dup->name, field->name, dup->name_length)) in nxt_router_prepare_msg()
H A Dnxt_h1proto.c1310 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()
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()
H A Dnxt_http_parse.c808 field->name_length = rp->field_name.length; in nxt_http_parse_field_end()
/unit/go/
H A Drequest.go85 n := GoStringN(&f.name, C.int(f.name_length))
/unit/src/python/
H A Dnxt_python_wsgi.c752 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()
1035 uint32_t name_length, value_length; in nxt_python_response_add_field() local
1042 rc = nxt_python_str_buf(name, &name_str, &name_length, &name_bytes); in nxt_python_response_add_field()
1052 rc = nxt_unit_response_add_field(pctx->req, name_str, name_length, in nxt_python_response_add_field()
H A Dnxt_python_asgi.c706 && f->name_length == ws_protocol.length in nxt_py_asgi_create_http_scope()
835 for (pos = 0; pos < f->name_length; pos++) { in nxt_py_asgi_create_header()
842 v = PyBytes_FromStringAndSize(name, f->name_length); in nxt_py_asgi_create_header()
/unit/src/nodejs/unit-http/
H A Dunit.cpp630 str = create_string_latin1(name, f->name_length); in append_header()
632 for (i = 0; i < f->name_length; i++) { in append_header()
872 f->name_length = name_len; in response_send_headers()
898 f->name_length = name_len; in response_send_headers()
/unit/src/test/
H A Dnxt_unit_app_test.c251 p = copy(p, nxt_unit_sptr_get(&f->name), f->name_length); in greeting_app_request_handler()
/unit/src/ruby/
H A Dnxt_ruby.c768 name = rb_str_new(nxt_unit_sptr_get(&f->name), f->name_length); in nxt_ruby_read_request()
/unit/src/perl/
H A Dnxt_perl_psgi.c684 nxt_unit_sptr_get(&f->name), f->name_length, in nxt_perl_psgi_env_create()