aboutsummaryrefslogtreecommitdiff
path: root/docs/man/nng_http_res_alloc.3http.adoc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-09-12 12:48:13 -0700
committerGarrett D'Amore <garrett@damore.org>2018-09-12 12:51:31 -0700
commit0863d12e2b5173efeb074cbc9fa05f26274f126b (patch)
tree2b4b137aa4d85d681fe0bc5118a22155cb691536 /docs/man/nng_http_res_alloc.3http.adoc
parent5f73996bf368e7f5d7249679c738a87873cb340d (diff)
downloadnng-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 'docs/man/nng_http_res_alloc.3http.adoc')
-rw-r--r--docs/man/nng_http_res_alloc.3http.adoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/man/nng_http_res_alloc.3http.adoc b/docs/man/nng_http_res_alloc.3http.adoc
index 2b7699a7..b395b502 100644
--- a/docs/man/nng_http_res_alloc.3http.adoc
+++ b/docs/man/nng_http_res_alloc.3http.adoc
@@ -28,8 +28,8 @@ int nng_http_res_alloc(nng_http_res **resp);
The `nng_http_res_alloc()` function allocates a new HTTP response structure
and stores a pointer to it in __resp__.
The response will be initialized
-with status code 200 (`NNG_HTTP_STATUS_OK`), and a reason phrase of "OK",
-and HTTP protocol version "HTTP/1.1".
+with status code 200 (`NNG_HTTP_STATUS_OK`), and a reason phrase of `"OK`",
+and HTTP protocol version `"HTTP/1.1`".
TIP: When an error response is needed, consider using
`<<nng_http_res_alloc_error.3http#,nng_http_res_alloc_error()>>` instead.
@@ -59,6 +59,7 @@ This function returns 0 on success, and non-zero otherwise.
<<nng_http_res_get_reason.3http#,nng_http_res_get_reason(3http)>>,
<<nng_http_res_get_status.3http#,nng_http_res_get_status(3http)>>,
<<nng_http_res_get_version.3http#,nng_http_res_get_version(3http)>>,
+<<nng_http_res_reset.3http#,nng_http_res_reset(3http)>>,
<<nng_http_res_set_data.3http#,nng_http_res_set_data(3http)>>,
<<nng_http_res_set_reason.3http#,nng_http_res_set_reason(3http)>>,
<<nng_http_res_set_status.3http#,nng_http_res_set_status(3http)>>,