Home
last modified time | relevance | path

Searched refs:nxt_str_t (Results 1 – 25 of 79) sorted by relevance

1234

/unit/src/
H A Dnxt_var.h15 nxt_str_t *str,
18 typedef int64_t (*nxt_var_field_hash_t)(nxt_mp_t *mp, nxt_str_t *str);
21 nxt_str_t name;
29 nxt_str_t name;
38 nxt_str_t *spare;
47 nxt_var_t *nxt_var_compile(nxt_str_t *str, nxt_mp_t *mp, nxt_array_t *fields);
48 nxt_int_t nxt_var_test(nxt_str_t *str, nxt_array_t *fields, u_char *error);
51 nxt_var_t *var, nxt_str_t *str, void *ctx, nxt_bool_t logging);
52 nxt_str_t *nxt_var_get(nxt_task_t *task, nxt_var_cache_t *cache,
53 nxt_str_t *name, void *ctx);
H A Dnxt_conf.h58 nxt_str_t name;
73 nxt_str_t error;
84 nxt_str_t *path);
86 nxt_str_t *name, uint32_t *index);
88 nxt_conf_value_t *value, nxt_str_t *name, uint32_t *next);
121 nxt_mp_t *mp, const nxt_str_t *str);
128 void nxt_conf_set_member(nxt_conf_value_t *object, nxt_str_t *name,
131 nxt_str_t *name, nxt_conf_value_t *value, uint32_t index);
133 nxt_str_t *value, uint32_t index);
135 nxt_str_t *name, nxt_str_t *value, uint32_t index);
[all …]
H A Dnxt_status.c15 nxt_str_t name; in nxt_status_get()
20 static nxt_str_t conns_str = nxt_string("connections"); in nxt_status_get()
21 static nxt_str_t acc_str = nxt_string("accepted"); in nxt_status_get()
22 static nxt_str_t active_str = nxt_string("active"); in nxt_status_get()
23 static nxt_str_t idle_str = nxt_string("idle"); in nxt_status_get()
24 static nxt_str_t closed_str = nxt_string("closed"); in nxt_status_get()
25 static nxt_str_t reqs_str = nxt_string("requests"); in nxt_status_get()
26 static nxt_str_t total_str = nxt_string("total"); in nxt_status_get()
28 static nxt_str_t procs_str = nxt_string("processes"); in nxt_status_get()
29 static nxt_str_t run_str = nxt_string("running"); in nxt_status_get()
[all …]
H A Dnxt_application.h53 nxt_str_t protocol;
74 nxt_str_t script;
76 nxt_str_t hooks;
91 nxt_str_t name;
92 nxt_str_t type;
93 nxt_str_t user;
94 nxt_str_t group;
125 nxt_str_t type;
136 nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name);
139 NXT_EXPORT extern nxt_str_t nxt_server;
H A Dnxt_http_variables.c10 static nxt_int_t nxt_http_var_dollar(nxt_task_t *task, nxt_str_t *str,
12 static nxt_int_t nxt_http_var_request_time(nxt_task_t *task, nxt_str_t *str,
14 static nxt_int_t nxt_http_var_method(nxt_task_t *task, nxt_str_t *str,
16 static nxt_int_t nxt_http_var_request_uri(nxt_task_t *task, nxt_str_t *str,
24 static nxt_int_t nxt_http_var_time_local(nxt_task_t *task, nxt_str_t *str,
30 static nxt_int_t nxt_http_var_status(nxt_task_t *task, nxt_str_t *str,
34 static nxt_int_t nxt_http_var_referer(nxt_task_t *task, nxt_str_t *str,
40 static nxt_int_t nxt_http_var_header(nxt_task_t *task, nxt_str_t *str,
42 static nxt_int_t nxt_http_var_cookie(nxt_task_t *task, nxt_str_t *str,
215 nxt_http_var_time_local(nxt_task_t *task, nxt_str_t *str, void *ctx, in nxt_http_var_time_local()
[all …]
H A Dnxt_cert.h17 nxt_int_t nxt_cert_info_save(nxt_str_t *name, nxt_cert_t *cert);
18 nxt_conf_value_t *nxt_cert_info_get(nxt_str_t *name);
20 nxt_int_t nxt_cert_info_delete(nxt_str_t *name);
25 void nxt_cert_store_get(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp,
27 void nxt_cert_store_delete(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp);
H A Dnxt_http.h145 nxt_str_t host;
147 nxt_str_t target;
148 nxt_str_t version;
149 nxt_str_t *method;
150 nxt_str_t *path;
151 nxt_str_t *args;
250 nxt_str_t *pass;
280 nxt_str_t *header;
356 nxt_str_t *segments, nxt_uint_t n);
385 const nxt_str_t *exten, nxt_str_t *type);
[all …]
H A Dnxt_tstr.h41 nxt_tstr_t *nxt_tstr_compile(nxt_tstr_state_t *state, nxt_str_t *str,
43 nxt_int_t nxt_tstr_test(nxt_tstr_state_t *state, nxt_str_t *str, u_char *error);
47 void nxt_tstr_str(nxt_tstr_t *tstr, nxt_str_t *str);
53 nxt_str_t *val);
61 nxt_is_tstr(nxt_str_t *str) in nxt_is_tstr()
H A Dnxt_var.c51 static nxt_var_decl_t *nxt_var_hash_find(nxt_str_t *name);
98 nxt_var_hash_find(nxt_str_t *name) in nxt_var_hash_find()
120 nxt_str_t str; in nxt_var_decl_get()
232 static nxt_str_t *
237 nxt_str_t *value; in nxt_var_cache_value()
243 value = nxt_mp_zget(cache->pool, sizeof(nxt_str_t)); in nxt_var_cache_value()
336 nxt_str_t part; in nxt_var_compile()
402 nxt_str_t part; in nxt_var_test()
508 nxt_str_t *str, void *ctx, nxt_bool_t logging) in nxt_var_interpreter()
512 nxt_str_t *value, **part; in nxt_var_interpreter()
[all …]
H A Dnxt_http_return.c13 nxt_str_t encoded;
18 nxt_str_t location;
19 nxt_str_t encoded;
25 static nxt_int_t nxt_http_return_encode(nxt_mp_t *mp, nxt_str_t *encoded,
26 const nxt_str_t *location);
39 nxt_str_t str; in nxt_http_return_init()
86 nxt_str_t loc; in nxt_http_return()
151 nxt_http_return_encode(nxt_mp_t *mp, nxt_str_t *encoded, in nxt_http_return_encode()
152 const nxt_str_t *location) in nxt_http_return_encode()
H A Dnxt_php_sapi.c47 nxt_str_t root;
48 nxt_str_t index;
49 nxt_str_t script_name;
50 nxt_str_t script_dirname;
51 nxt_str_t script_filename;
91 static nxt_int_t nxt_php_alter_option(nxt_str_t *name, nxt_str_t *value,
99 static nxt_int_t nxt_php_dirname(const nxt_str_t *file, nxt_str_t *dir);
115 const nxt_str_t *str);
721 nxt_php_alter_option(nxt_str_t *name, nxt_str_t *value, int type) in nxt_php_alter_option()
753 nxt_php_alter_option(nxt_str_t *name, nxt_str_t *value, int type) in nxt_php_alter_option()
[all …]
H A Dnxt_js.h26 nxt_js_t *nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_bool_t strz);
28 nxt_int_t nxt_js_test(nxt_js_conf_t *jcf, nxt_str_t *str, u_char *error);
30 nxt_str_t *str, void *ctx);
H A Dnxt_http_parse.h40 nxt_str_t method;
45 nxt_str_t path;
46 nxt_str_t args;
53 nxt_str_t field_name;
54 nxt_str_t field_value;
80 nxt_str_t name;
H A Dnxt_conf_validation.c78 nxt_str_t *value);
554 nxt_str_t key; in nxt_conf_vldt_ticket_key_element()
1374 nxt_str_t *value) in nxt_conf_vldt_var()
1568 nxt_str_t pass; in nxt_conf_vldt_pass()
1724 nxt_str_t str; in nxt_conf_vldt_share_element()
1818 nxt_str_t proto; in nxt_conf_vldt_python_protocol()
2717 nxt_str_t str; in nxt_conf_vldt_environment()
2931 nxt_str_t str; in nxt_conf_vldt_argument()
2990 nxt_str_t str; in nxt_conf_vldt_java_classpath()
3011 nxt_str_t str; in nxt_conf_vldt_java_option()
[all …]
H A Dnxt_router.h117 nxt_str_t name;
136 nxt_str_t *targets;
143 nxt_str_t conf;
198 nxt_str_t body_temp_path;
230 nxt_str_t path;
238 nxt_int_t nxt_router_application_init(nxt_router_conf_t *rtcf, nxt_str_t *name,
239 nxt_str_t *target, nxt_http_action_t *action);
H A Dnxt_js.c47 jcf->funcs = nxt_array_create(mp, 4, sizeof(nxt_str_t)); in nxt_js_conf_new()
65 nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_bool_t strz) in nxt_js_add_tpl()
70 nxt_str_t *func; in nxt_js_add_tpl()
72 static nxt_str_t func_str = nxt_string("function(uri, host, remoteAddr, " in nxt_js_add_tpl()
79 static nxt_str_t strz_str = nxt_string(" + '\\x00'"); in nxt_js_add_tpl()
130 nxt_str_t *func; in nxt_js_compile()
170 nxt_js_test(nxt_js_conf_t *jcf, nxt_str_t *str, u_char *error) in nxt_js_test()
173 nxt_str_t err; in nxt_js_test()
203 nxt_str_t *str, void *ctx) in nxt_js_call()
H A Dnxt_http_static.c58 nxt_str_t *exten);
130 nxt_str_t chr, shr; in nxt_http_static_init()
241 nxt_str_t shr; in nxt_http_static_iterate()
242 nxt_str_t idx; in nxt_http_static_iterate()
248 nxt_str_t chr; in nxt_http_static_iterate()
759 nxt_http_static_extract_extension(nxt_str_t *path, nxt_str_t *exten) in nxt_http_static_extract_extension()
935 nxt_str_t type; in nxt_http_static_mtypes_init()
1027 nxt_str_t exten;
1028 nxt_str_t *type;
1034 const nxt_str_t *exten, nxt_str_t *type) in nxt_http_static_mtypes_hash_add()
[all …]
H A Dnxt_tstr.c19 nxt_str_t str;
84 nxt_tstr_compile(nxt_tstr_state_t *state, nxt_str_t *str, in nxt_tstr_compile()
117 nxt_str_t tpl; in nxt_tstr_compile()
152 nxt_tstr_test(nxt_tstr_state_t *state, nxt_str_t *str, u_char *error) in nxt_tstr_test()
205 nxt_tstr_str(nxt_tstr_t *tstr, nxt_str_t *str) in nxt_tstr_str()
243 nxt_str_t *val) in nxt_tstr_query()
281 nxt_str_t str; in nxt_tstr_query()
H A Dnxt_string.h97 } nxt_str_t; typedef
119 NXT_EXPORT nxt_str_t *nxt_str_alloc(nxt_mp_t *mp, size_t length);
120 NXT_EXPORT nxt_str_t *nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst,
121 const nxt_str_t *src);
122 NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
H A Dnxt_errno.c31 static nxt_str_t *nxt_sys_errlist;
103 n = (nxt_sys_nerr + 1) * sizeof(nxt_str_t); in nxt_strerror_start()
142 nxt_str_t *msg; in nxt_runtime_strerror()
H A Dnxt_runtime.h27 nxt_str_t hostname;
76 nxt_str_t certs;
124 nxt_str_t *nxt_current_directory(nxt_mp_t *mp);
132 nxt_file_t *nxt_runtime_log_file_add(nxt_runtime_t *rt, nxt_str_t *name);
H A Dnxt_cert.c30 nxt_str_t name;
37 nxt_str_t name;
423 nxt_cert_info_get(nxt_str_t *name) in nxt_cert_info_get()
499 nxt_str_t str; in nxt_cert_details()
647 nxt_str_t name;
656 nxt_str_t str; in nxt_cert_name_details()
742 nxt_str_t str; in nxt_cert_alt_names_details()
791 nxt_cert_info_delete(nxt_str_t *name) in nxt_cert_info_delete()
819 nxt_str_t name; in nxt_cert_store_load()
1128 nxt_str_t name; in nxt_cert_store_get_handler()
[all …]
H A Dnxt_string.c10 nxt_str_t *
13 nxt_str_t *s; in nxt_str_alloc()
16 s = nxt_mp_get(mp, sizeof(nxt_str_t) + length); in nxt_str_alloc()
20 s->start = nxt_pointer_to(s, sizeof(nxt_str_t)); in nxt_str_alloc()
33 nxt_str_t *
34 nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src) in nxt_str_dup()
40 dst = nxt_mp_get(mp, sizeof(nxt_str_t) + src->length); in nxt_str_dup()
46 p += sizeof(nxt_str_t); in nxt_str_dup()
71 nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src) in nxt_str_cstrz()
/unit/src/test/
H A Dnxt_http_parse_test.c12 nxt_str_t method;
13 nxt_str_t target;
14 nxt_str_t args;
40 nxt_str_t request;
44 nxt_str_t *request, nxt_log_t *log);
51 nxt_str_t *request);
56 nxt_str_t *request, nxt_log_t *log);
450 static nxt_str_t nxt_http_test_simple_request = nxt_string(
456 static nxt_str_t nxt_http_test_big_request = nxt_string(
653 nxt_http_parse_test_bench(nxt_thread_t *thr, nxt_str_t *request, in nxt_http_parse_test_bench()
[all …]
H A Dnxt_term_parse_test.c12 nxt_str_t string;
41 const nxt_str_t *s; in nxt_term_parse_test()

1234