Home
last modified time | relevance | path

Searched refs:nxt_length (Results 1 – 25 of 31) sorted by relevance

12

/unit/src/test/
H A Dnxt_unit_app_test.c215 p = copy(p, METHOD, nxt_length(METHOD)); in greeting_app_request_handler()
219 p = copy(p, PROTOCOL, nxt_length(PROTOCOL)); in greeting_app_request_handler()
223 p = copy(p, REMOTE_ADDR, nxt_length(REMOTE_ADDR)); in greeting_app_request_handler()
227 p = copy(p, LOCAL_ADDR, nxt_length(LOCAL_ADDR)); in greeting_app_request_handler()
231 p = copy(p, TARGET, nxt_length(TARGET)); in greeting_app_request_handler()
235 p = copy(p, PATH, nxt_length(PATH)); in greeting_app_request_handler()
240 p = copy(p, QUERY, nxt_length(QUERY)); in greeting_app_request_handler()
245 p = copy(p, FIELDS, nxt_length(FIELDS)); in greeting_app_request_handler()
250 p = copy(p, FIELD_PAD, nxt_length(FIELD_PAD)); in greeting_app_request_handler()
252 p = copy(p, FIELD_SEP, nxt_length(FIELD_SEP)); in greeting_app_request_handler()
[all …]
H A Dnxt_unit_websocket_chat.c107 nxt_length(CONTENT_TYPE) in ws_chat_root()
108 + nxt_length(TEXT_HTML) in ws_chat_root()
109 + nxt_length(CONTENT_LENGTH) in ws_chat_root()
117 CONTENT_TYPE, nxt_length(CONTENT_TYPE), in ws_chat_root()
118 TEXT_HTML, nxt_length(TEXT_HTML)); in ws_chat_root()
124 CONTENT_LENGTH, nxt_length(CONTENT_LENGTH), in ws_chat_root()
348 static const int ws_chat_index_html_size = nxt_length(ws_chat_index_html);
H A Dnxt_utf8_test.c181 nxt_length("ABC АБВ ΑΒΓ"), in nxt_utf8_test()
182 nxt_length("abc абв αβγ")); in nxt_utf8_test()
/unit/src/
H A Dnxt_types.h79 #define NXT_INT64_T_LEN nxt_length("-9223372036854775808")
80 #define NXT_INT32_T_LEN nxt_length("-2147483648")
82 #define NXT_INT64_T_HEXLEN nxt_length("FFFFFFFFFFFFFFFF")
83 #define NXT_INT32_T_HEXLEN nxt_length("FFFFFFFF")
H A Dnxt_app_log.c79 if (p > end - nxt_length("\n")) { in nxt_log_time_handler()
80 p = end - nxt_length("\n"); in nxt_log_time_handler()
89 *(p - nxt_length("\n")) = '\0'; in nxt_log_time_handler()
105 nxt_length("1970/09/28 12:00:00 "),
125 nxt_length("1970/09/28 12:00:00.000 "),
H A Dnxt_log.c100 if (p > end - nxt_length("\n")) { in nxt_log_handler()
101 p = end - nxt_length("\n"); in nxt_log_handler()
110 *(p - nxt_length("\n")) = '\0'; in nxt_log_handler()
H A Dnxt_listen_socket.c279 ls->address_length = nxt_length("unix:"); in nxt_listen_socket_remote_size()
318 + NXT_INET6_ADDR_STR_LEN + nxt_length(":65535"); in nxt_listen_socket_pool_min_size()
338 size = ls->socklen + nxt_length("unix:"); in nxt_listen_socket_pool_min_size()
339 ls->address_length = nxt_length("unix:"); in nxt_listen_socket_pool_min_size()
350 + NXT_INET_ADDR_STR_LEN + nxt_length(":65535"); in nxt_listen_socket_pool_min_size()
H A Dnxt_sockaddr.h105 #define NXT_INET_ADDR_STR_LEN nxt_length("255.255.255.255:65535")
108 nxt_length("[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]:65535")
H A Dnxt_upstream_source.h72 #define nxt_upstream_name_value(s) nxt_length(s), s
H A Dnxt_websocket_accept.c62 nxt_sha1_update(&ctx, accept_guid, nxt_length(accept_guid)); in nxt_websocket_accept()
H A Dnxt_runtime.c991 write(STDERR_FILENO, no_user, nxt_length(no_user)); in nxt_runtime_conf_read_cmd()
1004 write(STDERR_FILENO, no_group, nxt_length(no_group)); in nxt_runtime_conf_read_cmd()
1017 write(STDERR_FILENO, no_pid, nxt_length(no_pid)); in nxt_runtime_conf_read_cmd()
1030 write(STDERR_FILENO, no_log, nxt_length(no_log)); in nxt_runtime_conf_read_cmd()
1056 write(STDERR_FILENO, no_state, nxt_length(no_state)); in nxt_runtime_conf_read_cmd()
1069 write(STDERR_FILENO, no_tmp, nxt_length(no_tmp)); in nxt_runtime_conf_read_cmd()
1086 write(STDERR_FILENO, version, nxt_length(version)); in nxt_runtime_conf_read_cmd()
1091 write(STDOUT_FILENO, help, nxt_length(help)); in nxt_runtime_conf_read_cmd()
1094 write(STDOUT_FILENO, primary, nxt_length(primary)); in nxt_runtime_conf_read_cmd()
1097 write(STDOUT_FILENO, group, nxt_length(group)); in nxt_runtime_conf_read_cmd()
[all …]
H A Dnxt_java.c162 jlen = nxt_length("file:") + modules_len in nxt_java_module_jars()
163 + (!pathsep ? nxt_length("/") : 0) in nxt_java_module_jars()
173 jurl = nxt_cpymem(jurl, "file:", nxt_length("file:")); in nxt_java_module_jars()
288 opt_len += nxt_length("file:"); in nxt_java_start()
311 opt_len = nxt_length("file:") + real_path_len + 1; in nxt_java_start()
327 opt = nxt_cpymem(opt, "file:", nxt_length("file:")); in nxt_java_start()
H A Dnxt_http.h93 (_field)->name_length = nxt_length(_name); \
100 (_field)->name_length = nxt_length(_name); \
101 (_field)->value_length = nxt_length(_value); \
290 #define NXT_HTTP_DATE_LEN nxt_length("Wed, 31 Dec 1986 16:40:00 GMT")
H A Dnxt_http_error.c24 #define NXT_HTTP_ERROR_LEN (nxt_length(error) - 2)
H A Dnxt_string.h108 #define nxt_string(str) { nxt_length(str), (u_char *) str }
115 (str)->length = nxt_length(text); \
H A Dnxt_errno.c44 size = nxt_length("Unknown error"); in nxt_strerror_start()
H A Dnxt_sprintf.c384 length = nxt_length(nan); in nxt_vsprintf()
390 length = nxt_length(infinity); in nxt_vsprintf()
561 length = nxt_length(null); in nxt_vsprintf()
H A Dnxt_clang.h254 #define nxt_length(s) \ macro
H A Dnxt_h1proto.c1266 size += nxt_length("\r\n"); in nxt_h1p_request_header_send()
1288 size += nxt_length(chunked); in nxt_h1p_request_header_send()
1290 size -= nxt_length("\r\n"); in nxt_h1p_request_header_send()
1311 size += nxt_length(": \r\n"); in nxt_h1p_request_header_send()
1317 size += nxt_length(websocket_version); in nxt_h1p_request_header_send()
1355 p = nxt_cpymem(p, chunked, nxt_length(chunked)); in nxt_h1p_request_header_send()
1518 tail->mem.free += nxt_length(tail_chunk); in nxt_h1p_chunk_create()
1898 size = nxt_length(NXT_H1P_IDLE_TIMEOUT) in nxt_h1p_idle_response()
1900 + nxt_length("\r\n\r\n"); in nxt_h1p_idle_response()
1908 nxt_length(NXT_H1P_IDLE_TIMEOUT)); in nxt_h1p_idle_response()
[all …]
H A Dnxt_application.c244 size = nxt_length("[]"); in nxt_discovery_modules()
252 size += nxt_length("{\"type\": ,"); in nxt_discovery_modules()
253 size += nxt_length(" \"version\": \"\","); in nxt_discovery_modules()
254 size += nxt_length(" \"file\": \"\","); in nxt_discovery_modules()
255 size += nxt_length(" \"mounts\": []},"); in nxt_discovery_modules()
263 size += mounts->nelts * nxt_length("{\"src\": \"\", \"dst\": \"\", " in nxt_discovery_modules()
H A Dnxt_random.c191 nxt_random_add(&r, (u_char *) "arc4random", nxt_length("arc4random")); in nxt_random_test()
H A Dnxt_controller.c1978 nxt_length("Wed, 31 Dec 1986 16:40:00 GMT"), in nxt_controller_response()
2075 size = nxt_length("HTTP/1.1 " "\r\n") + status_line.length in nxt_controller_response()
2076 + nxt_length("Server: " NXT_SERVER "\r\n") in nxt_controller_response()
2077 + nxt_length("Date: Wed, 31 Dec 1986 16:40:00 GMT\r\n") in nxt_controller_response()
2078 + nxt_length("Content-Type: application/json\r\n") in nxt_controller_response()
2079 + nxt_length("Content-Length: " "\r\n") + NXT_SIZE_T_LEN in nxt_controller_response()
2080 + nxt_length("Connection: close\r\n") in nxt_controller_response()
2081 + nxt_length("\r\n"); in nxt_controller_response()
H A Dnxt_http_route_addr.c80 port.start += nxt_length("]:"); in nxt_http_route_addr_pattern_parse()
H A Dnxt_isolation.c609 mnt->dst = nxt_mp_nget(mp, rootfs_len + nxt_length("/tmp") + 1); in nxt_isolation_set_lang_mounts()
628 mnt->dst = nxt_mp_nget(mp, rootfs_len + nxt_length("/proc") + 1); in nxt_isolation_set_lang_mounts()
H A Dnxt_sockaddr.c210 length = nxt_length("unix:") + socklen; in nxt_getsockname()
522 nxt_length("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"); in nxt_inet6_ntop()

12