diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-12 10:42:54 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-12 10:52:03 -0800 |
| commit | c34abc224e572b19fb5aa1b5afc8841705485d14 (patch) | |
| tree | 82f6a936ae84fbece104dfb07b0b7c9ac0581dc8 /src/supplemental/http/http_api.h | |
| parent | e5721f6b4dd7e4084a14b6f2f38bfb3672796ac9 (diff) | |
| download | nng-c34abc224e572b19fb5aa1b5afc8841705485d14.tar.gz nng-c34abc224e572b19fb5aa1b5afc8841705485d14.tar.bz2 nng-c34abc224e572b19fb5aa1b5afc8841705485d14.zip | |
http: remove unused nng_http_handler_get_data
The data is now passed directly to the handler function.
Diffstat (limited to 'src/supplemental/http/http_api.h')
| -rw-r--r-- | src/supplemental/http/http_api.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/supplemental/http/http_api.h b/src/supplemental/http/http_api.h index c8d73788..63a4adab 100644 --- a/src/supplemental/http/http_api.h +++ b/src/supplemental/http/http_api.h @@ -294,15 +294,11 @@ extern void nni_http_handler_set_host(nni_http_handler *, const char *); extern void nni_http_handler_set_method(nni_http_handler *, const char *); // nni_http_handler_set_data sets an opaque data element on the handler, -// which will be available to the callback via nni_http_handler_get_data. +// which will be available to the handler function as argument. // The callback is an optional destructor, and will be called with the // data as its argument, when the handler is being destroyed. extern void nni_http_handler_set_data(nni_http_handler *, void *, nni_cb); -// nni_http_handler_get_data returns the data that was previously stored -// by nni_http_handler_set_data. -extern void *nni_http_handler_get_data(nni_http_handler *); - // nni_http_handler_get_uri returns the URI set on the handler. extern const char *nni_http_handler_get_uri(nni_http_handler *); |
