summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_js.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-11-22 10:13:18 +0800
committerZhidao HONG <z.hong@f5.com>2022-11-22 10:13:18 +0800
commite3bbf5b3b5be384a39bbd1c42d44379b17d94185 (patch)
tree5786bb3116a474f8ff837e796c35972401b648b1 /src/nxt_js.h
parent4d6d146e920667a8afeacd355e4fb6a94387066e (diff)
downloadunit-e3bbf5b3b5be384a39bbd1c42d44379b17d94185.tar.gz
unit-e3bbf5b3b5be384a39bbd1c42d44379b17d94185.tar.bz2
NJS: added http request prototype.
Diffstat (limited to 'src/nxt_js.h')
-rw-r--r--src/nxt_js.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_js.h b/src/nxt_js.h
index 321041ae..dea43fe3 100644
--- a/src/nxt_js.h
+++ b/src/nxt_js.h
@@ -22,6 +22,7 @@ typedef struct {
nxt_js_conf_t *nxt_js_conf_new(nxt_mp_t *mp);
+void nxt_js_set_proto(nxt_js_conf_t *jcf, njs_external_t *proto, nxt_uint_t n);
nxt_js_t *nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_bool_t strz);
nxt_int_t nxt_js_compile(nxt_js_conf_t *jcf);
nxt_int_t nxt_js_test(nxt_js_conf_t *jcf, nxt_str_t *str, u_char *error);
@@ -29,6 +30,9 @@ nxt_int_t nxt_js_call(nxt_task_t *task, nxt_js_cache_t *cache, nxt_js_t *js,
nxt_str_t *str, void *ctx);
+extern njs_int_t nxt_js_proto_id;
+
+
#endif /* NXT_HAVE_NJS */
#endif /* _NXT_JS_H_INCLUDED_ */