aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_api.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 12:32:15 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 12:32:15 -0800
commita946d79e8d0eb3a47f75d6e1e98a28462c584d67 (patch)
treedc848a251a9f483eccbae1d043e52136eabb473f /src/supplemental/http/http_api.h
parent2662596f105fc98ae1d2aa3b6137261bb351a8df (diff)
downloadnng-a946d79e8d0eb3a47f75d6e1e98a28462c584d67.tar.gz
nng-a946d79e8d0eb3a47f75d6e1e98a28462c584d67.tar.bz2
nng-a946d79e8d0eb3a47f75d6e1e98a28462c584d67.zip
http: handler set tree no longer returns a value (API break)
Diffstat (limited to 'src/supplemental/http/http_api.h')
-rw-r--r--src/supplemental/http/http_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supplemental/http/http_api.h b/src/supplemental/http/http_api.h
index 0748b1f9..47e46b53 100644
--- a/src/supplemental/http/http_api.h
+++ b/src/supplemental/http/http_api.h
@@ -304,14 +304,14 @@ extern void nni_http_handler_collect_body(nni_http_handler *, bool, size_t);
// nni_http_handler_set_tree marks the handler as servicing the entire
// tree (e.g. a directory), rather than just a leaf node. The handler
// will probably need to inspect the URL of the request.
-extern int nni_http_handler_set_tree(nni_http_handler *);
+extern void nni_http_handler_set_tree(nni_http_handler *);
// nni_http_handler_set_tree_exclusive marks the handler as servicing the
// entire tree (e.g. a directory) exclusively, rather than just a leaf node.
// When servicing a tree exclusively, other handlers sharing parts of the uri
// will induce an address conflict when adding them to a server. The handler
// will probably need to inspect the URL of the request.
-extern int nni_http_handler_set_tree_exclusive(nni_http_handler *);
+extern void nni_http_handler_set_tree_exclusive(nni_http_handler *);
// nni_http_handler_set_host limits the handler to only being called for
// the given Host: field. This can be used to set up multiple virtual