diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-09-12 12:48:13 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-09-12 12:51:31 -0700 |
| commit | 0863d12e2b5173efeb074cbc9fa05f26274f126b (patch) | |
| tree | 2b4b137aa4d85d681fe0bc5118a22155cb691536 /src/supplemental/http/http.h | |
| parent | 5f73996bf368e7f5d7249679c738a87873cb340d (diff) | |
| download | nng-0863d12e2b5173efeb074cbc9fa05f26274f126b.tar.gz nng-0863d12e2b5173efeb074cbc9fa05f26274f126b.tar.bz2 nng-0863d12e2b5173efeb074cbc9fa05f26274f126b.zip | |
fixes #717 need nng_http_req_reset and nng_http_res_reset
fixes #718 http_transact is still not right
fixes #719 calculation of buffer size is incorrect in http
Diffstat (limited to 'src/supplemental/http/http.h')
| -rw-r--r-- | src/supplemental/http/http.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/supplemental/http/http.h b/src/supplemental/http/http.h index f6656fce..cffd1a8b 100644 --- a/src/supplemental/http/http.h +++ b/src/supplemental/http/http.h @@ -275,6 +275,12 @@ NNG_DECL void nng_http_conn_read_req( NNG_DECL void nng_http_conn_read_res( nng_http_conn *, nng_http_res *, nng_aio *); +// nng_http_req_reset resets the request to an initially allocated state. +NNG_DECL void nng_http_req_reset(nng_http_req *); + +// nng_http_res_reset resets the response to an initially allocated state. +NNG_DECL void nng_http_res_reset(nng_http_res *); + // nng_http_handler is a handler used on the server side to handle HTTP // requests coming into a specific URL. typedef struct nng_http_handler nng_http_handler; |
