NJS: added http request prototype.

This commit is contained in:
Zhidao HONG
2022-11-22 10:13:18 +08:00
parent 4d6d146e92
commit e3bbf5b3b5
7 changed files with 359 additions and 4 deletions

View File

@@ -1065,6 +1065,10 @@ nxt_router_temp_conf(nxt_task_t *task)
goto fail;
}
#if (NXT_HAVE_NJS)
nxt_http_register_js_proto(rtcf->tstr_state->jcf);
#endif
tmp = nxt_mp_create(1024, 128, 256, 32);
if (nxt_slow_path(tmp == NULL)) {
goto fail;