diff options
Diffstat (limited to 'src/supplemental/http/http_api.h')
| -rw-r--r-- | src/supplemental/http/http_api.h | 4 |
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 |
