Home
last modified time | relevance | path

Searched refs:name_length (Results 1 – 22 of 22) 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.c848 size_t name_length; in nxt_http_arguments_parse() local
866 name_length = 0; in nxt_http_arguments_parse()
901 name_length = 0; in nxt_http_arguments_parse()
967 name_length = length; in nxt_http_argument()
972 nv->name_length = name_length; in nxt_http_argument()
1000 || f->name_length != 6 in nxt_http_cookies_parse()
1023 size_t name_length; in nxt_http_cookie_parse() local
1028 name_length = 0; in nxt_http_cookie_parse()
1036 name_length = p - start; in nxt_http_cookie_parse()
1038 if (name_length != 0) { in nxt_http_cookie_parse()
[all …]
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_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); \
203 uint16_t name_length; member
H A Dnxt_http_route.c84 uint16_t name_length; member
1877 || rule->u.name.length != f->name_length in nxt_http_route_header()
1878 || nxt_strncasecmp(rule->u.name.start, f->name, f->name_length) in nxt_http_route_header()
1928 && rule->u.name.length == nv->name_length in nxt_http_route_test_argument()
1929 && nxt_memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_argument()
2006 && rule->u.name.length == nv->name_length in nxt_http_route_test_cookie()
2007 && nxt_memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_cookie()
H A Dnxt_unit.c1909 nxt_unit_field_hash(const char *name, size_t name_length) in nxt_unit_field_hash() argument
1916 end = name + name_length; in nxt_unit_field_hash()
1971 if (fields[i].name_length == cookie.length in nxt_unit_request_group_dup_fields()
1983 || fields[i].name_length != fields[j].name_length in nxt_unit_request_group_dup_fields()
2167 f->name_length = src->name_length; in nxt_unit_response_realloc()
2224 const char *name, uint8_t name_length, in nxt_unit_response_add_field() argument
2252 if (nxt_slow_path(name_length + value_length + 2 in nxt_unit_response_add_field()
2262 (int) name_length, name, in nxt_unit_response_add_field()
2268 buf->free = nxt_cpymem(buf->free, name, name_length); in nxt_unit_response_add_field()
2275 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.c4276 field->name_length = f->name_length; in nxt_router_response_ready_handler()
4288 (size_t) field->name_length, field->name, in nxt_router_response_ready_handler()
5546 req_size += field->name_length + prefix->length + 1 in nxt_router_prepare_msg()
5649 dst_field->name_length = field->name_length + prefix->length; in nxt_router_prepare_msg()
5667 (int) field->name_length, field->name, 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()
5708 if (dup->name_length != field->name_length in nxt_router_prepare_msg()
5711 || 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()
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()
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.c734 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()
1017 uint32_t name_length, value_length; in nxt_python_response_add_field() local
1024 rc = nxt_python_str_buf(name, &name_str, &name_length, &name_bytes); in nxt_python_response_add_field()
1034 rc = nxt_unit_response_add_field(pctx->req, name_str, name_length, in nxt_python_response_add_field()
H A Dnxt_python_asgi.c704 && f->name_length == ws_protocol.length in nxt_py_asgi_create_http_scope()
793 for (pos = 0; pos < f->name_length; pos++) { in nxt_py_asgi_create_header()
800 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()
871 f->name_length = name_len; in response_send_headers()
897 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/perl/
H A Dnxt_perl_psgi.c684 nxt_unit_sptr_get(&f->name), f->name_length, in nxt_perl_psgi_env_create()
/unit/src/ruby/
H A Dnxt_ruby.c796 name = rb_str_new(nxt_unit_sptr_get(&f->name), f->name_length); in nxt_ruby_read_request()