From fc0abbdf71700b2414ba012f9863f7dfaf514b91 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 2 Feb 2018 12:46:02 -0800 Subject: Document HTTP request/reply structures and handling. --- docs/libnng.adoc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'docs/libnng.adoc') diff --git a/docs/libnng.adoc b/docs/libnng.adoc index 57337f47..b23383cc 100644 --- a/docs/libnng.adoc +++ b/docs/libnng.adoc @@ -171,6 +171,51 @@ universal resource locators (URLS). | <>|create URL structure from string |=== + +=== HTTP Support + +The library may be configured with support for HTTP, and this will +be the case if WebSocket support is configured as well. In this case, +it is possible to access functionality to support the creation of +HTTP (and HTTP/S if TLS support is present) servers and clients. + +==== Common HTTP Functions + +The following functions are used to work with HTTP requests, responses, +and connections. + +|=== +| <>|add HTTP request header +| <>|allocate HTTP request structure +| <>|copy HTTP request body +| <>|delete HTTP request header +| <>|free HTTP request structure +| <>|return HTTP request header +| <>|return HTTP request method +| <>|return HTTP request URI +| <>|return HTTP request protocol version +| <>|set HTTP request body +| <>|set HTTP request header +| <>|set HTTP request method +| <>|set HTTP request URI +| <>|set HTTP request protocol version +| <>|add HTTP response header +| <>|allocate HTTP response structure +| <>|allocate HTTP error response +| <>|copy HTTP response body +| <>|delete HTTP response header +| <>|free HTTP response structure +| <>|set HTTP response body +| <>|return HTTP response header +| <>|return HTTP response reason +| <>|return HTTP response status +| <>|return HTTP response protocol version +| <>|set HTTP response header +| <>|set HTTP response reason +| <>|set HTTP response status +| <>|set HTTP response protocol version +|=== + === TLS Configuration Objects The following functions are used to manipulate transport layer security -- cgit v1.2.3-70-g09d2