Home
last modified time | relevance | path

Searched refs:value_length (Results 1 – 25 of 30) sorted by relevance

12

/unit/src/
H A Dnxt_unit_field.h27 uint32_t value_length; member
H A Dnxt_http_request.c95 host.length = field->value_length; in nxt_http_request_host()
376 && f->value_length > 0 in nxt_http_request_forward()
392 && f->value_length > 0 in nxt_http_request_forward()
429 len = f[i]->value_length; in nxt_http_request_forward_client_ip()
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()
659 server->value_length = nxt_strlen(server_string); in nxt_http_request_header_send()
699 content_length->value_length = end - p; in nxt_http_request_header_send()
1058 nv->value_length = length; in nxt_http_argument()
[all …]
H A Dnxt_http_variables.c483 str->length = r->referer->value_length; in nxt_http_var_referer()
502 str->length = r->user_agent->value_length; in nxt_http_var_user_agent()
564 str->length = r->resp.content_length->value_length; in nxt_http_var_response_content_length()
635 str->length = nv->value_length; in nxt_http_var_arg()
666 str->length = f->value_length; in nxt_http_var_header()
705 str->length = nv->value_length; in nxt_http_var_cookie()
768 str->length = f->value_length; in nxt_http_var_response_header()
H A Dnxt_http_response.c55 if (field->value_length >= 3) { in nxt_http_response_status()
H A Dnxt_http_parse.h92 uint32_t value_length; member
H A Dnxt_http_proxy.c264 (size_t) field->value_length, field->value); in nxt_http_proxy_header_read()
416 n = nxt_off_t_parse(field->value, field->value_length); in nxt_http_proxy_content_length()
H A Dnxt_http_js.c218 f->value_length); in nxt_http_js_ext_get_header()
300 nv->value_length); in nxt_http_js_ext_get_cookie()
H A Dnxt_http_set_headers.c168 f->value_length = value[i].length; in nxt_http_set_headers()
H A Dnxt_h1proto.c756 if (field->value_length == 5 in nxt_h1p_connection()
761 } else if (field->value_length == 10 in nxt_h1p_connection()
766 } else if (field->value_length == 7 in nxt_h1p_connection()
783 if (field->value_length == 9 in nxt_h1p_upgrade()
800 if (field->value_length == 24) { in nxt_h1p_websocket_key()
815 if (field->value_length == 2 in nxt_h1p_websocket_version()
835 if (field->value_length == 7 in nxt_h1p_transfer_encoding()
1320 size += field->name_length + field->value_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()
[all …]
H A Dnxt_http_static.c532 field->value_length = nxt_http_date(p, &tm) - p; in nxt_http_static_send_ready()
549 field->value_length = nxt_sprintf(p, p + length, "\"%xT-%xO\"", in nxt_http_static_send_ready()
571 field->value_length = mtype->length; in nxt_http_static_send_ready()
631 field->value_length = length; in nxt_http_static_send_ready()
H A Dnxt_http.h101 (_field)->value_length = nxt_length(_value); \
211 uint32_t value_length; member
H A Dnxt_http_return.c204 field->value_length = ctx->encoded.length; in nxt_http_return_send_ready()
H A Dnxt_unit.h270 const char* value, uint32_t value_length);
H A Dnxt_php_sapi.c788 ini_entry->value_length = value->length; in nxt_php_alter_option()
1513 nxt_php_set_sptr(req, name, &f->value, f->value_length,
1520 nxt_php_set_sptr(req, "CONTENT_LENGTH", &f->value, f->value_length,
1527 nxt_php_set_sptr(req, "CONTENT_TYPE", &f->value, f->value_length,
H A Dnxt_router.c4146 field->value_length = f->value_length; in nxt_router_response_ready_handler()
4158 (size_t) field->value_length, field->value); in nxt_router_response_ready_handler()
5417 + field->value_length + 1; in nxt_router_prepare_msg()
5526 dst_field->value_length = field->value_length; in nxt_router_prepare_msg()
5544 (int) field->value_length, field->value); in nxt_router_prepare_msg()
5575 p = nxt_cpymem(p, field->value, field->value_length); in nxt_router_prepare_msg()
5593 p = nxt_cpymem(p, dup->value, dup->value_length); in nxt_router_prepare_msg()
5595 dst_field->value_length += 2 + dup->value_length; in nxt_router_prepare_msg()
/unit/src/python/
H A Dnxt_python_wsgi.c661 vl = f->value_length; in nxt_python_get_environ()
672 vl += 2 + f2->value_length; in nxt_python_get_environ()
684 f->value_length)); in nxt_python_get_environ()
691 f->value_length)); in nxt_python_get_environ()
790 (int) field->value_length, in nxt_python_add_field()
878 p = nxt_cpymem(p, src, f->value_length); in nxt_python_field_value()
884 p = nxt_cpymem(p, src, f[i].value_length); in nxt_python_field_value()
905 p = nxt_cpymem(p, src, f->value_length); in nxt_python_field_value()
911 p = nxt_cpymem(p, src, f[i].value_length); in nxt_python_field_value()
1085 uint32_t name_length, value_length; in nxt_python_response_add_field() local
[all …]
H A Dnxt_python_asgi.c783 && f->value_length > 0 in nxt_py_asgi_create_http_scope()
920 f->value_length); in nxt_py_asgi_create_header()
943 for (i = 0; i < f->value_length; i++) { in nxt_py_asgi_create_subprotocols()
957 for (i = 0; i < f->value_length; ) { in nxt_py_asgi_create_subprotocols()
977 } while (i < f->value_length && v[i] == ' '); in nxt_py_asgi_create_subprotocols()
/unit/src/java/
H A Dnxt_jni_Request.c369 end = value + f->value_length; in nxt_java_Request_getIntHeader()
373 if (end < value + f->value_length) { in nxt_java_Request_getIntHeader()
611 colon = memchr(host, ':', f->value_length); in nxt_java_Request_getServerName()
614 colon = host + f->value_length; in nxt_java_Request_getServerName()
639 colon = memchr(host, ':', f->value_length); in nxt_java_Request_getServerPort()
645 tmp = host[f->value_length]; in nxt_java_Request_getServerPort()
647 host[f->value_length] = '\0'; in nxt_java_Request_getServerPort()
651 host[f->value_length] = tmp; in nxt_java_Request_getServerPort()
H A Dnxt_jni_Response.c409 f->value_length = snprintf(p, 40, "%d", (int) value); in nxt_java_add_int_header()
410 p += f->value_length + 1; in nxt_java_add_int_header()
500 f->value_length); in nxt_java_Response_getHeader()
693 if (add_field && f->value_length >= (uint32_t) value_len) { in nxt_java_response_set_header()
697 f->value_length = value_len; in nxt_java_response_set_header()
894 f->value_length); in nxt_java_Response_getContentType()
H A Dnxt_jni_HeadersEnumeration.c147 f->value_length); in nxt_java_HeadersEnumeration_nextElement()
/unit/go/
H A Drequest.go86 v := GoStringN(&f.value, C.int(f.value_length))
/unit/src/test/
H A Dnxt_unit_app_test.c253 p = copy(p, nxt_unit_sptr_get(&f->value), f->value_length); in greeting_app_request_handler()
/unit/src/nodejs/unit-http/
H A Dunit.cpp642 vstr = set_named_property(headers, name, f->value, f->value_length); in append_header()
882 f->value_length = (uint32_t) value_len; in response_send_headers()
908 f->value_length = (uint32_t) value_len; in response_send_headers()
/unit/src/perl/
H A Dnxt_perl_psgi.c686 &f->value, f->value_length)); in nxt_perl_psgi_env_create()
693 &f->value, f->value_length)); in nxt_perl_psgi_env_create()
700 &f->value, f->value_length)); in nxt_perl_psgi_env_create()
/unit/src/ruby/
H A Dnxt_ruby.c770 nxt_ruby_add_sptr(hash_env, name, &f->value, f->value_length); in nxt_ruby_read_request()
777 &f->value, f->value_length); in nxt_ruby_read_request()
784 &f->value, f->value_length); in nxt_ruby_read_request()

12