aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental/http')
-rw-r--r--src/supplemental/http/http_public.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c
index 2d879807..7107c029 100644
--- a/src/supplemental/http/http_public.c
+++ b/src/supplemental/http/http_public.c
@@ -574,6 +574,16 @@ nng_http_handler_set_host(nng_http_handler *h, const char *host)
#endif
}
+int nng_http_handler_set_tree(nng_http_handler *h)
+{
+#ifdef NNG_SUPP_HTTP
+ return (nni_http_handler_set_tree(h));
+#else
+ NNI_ARG_UNUSED(h);
+ return (NNG_ENOTSUP);
+#endif
+}
+
int
nng_http_handler_set_data(nng_http_handler *h, void *dat, void (*dtor)(void *))
{
@@ -588,7 +598,7 @@ nng_http_handler_set_data(nng_http_handler *h, void *dat, void (*dtor)(void *))
}
void *
-nng_handler_get_data(nng_http_handler *h)
+nng_http_handler_get_data(nng_http_handler *h)
{
#ifdef NNG_SUPP_HTTP
return (nni_http_handler_get_data(h));
@@ -688,6 +698,16 @@ nng_http_server_get_tls(nng_http_server *srv, nng_tls_config **cfgp)
#endif
}
+int nng_http_hijack(nng_http_conn * conn)
+{
+#ifdef NNG_SUPP_HTTP
+ return (nni_http_hijack(conn));
+#else
+ NNI_ARG_UNUSED(conn);
+ return (NNG_ENOTSUP);
+#endif
+}
+
int
nng_http_client_alloc(nng_http_client **clip, const nng_url *url)
{