kore-doc

The kore documentation found under https://docs.kore.io/
Commits | Files | Refs | README | git clone https://git.kore.io/kore-doc.git

commit 0851faee411d86f0cf9c0c717a1861b412171a10
parent 739dddc8cf4fc267db1ae50c881c7597523bd26f
Author: Daniel Chavez <dacechavez@gmail.com>
Date:   Sun,  5 May 2019 14:28:41 +0200

add missing http_state_create().

Diffstat:
api/http.md | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/api/http.md b/api/http.md @@ -330,6 +330,30 @@ This should be called from a page handler. --- +# http\_state\_create + +### Synopsis + +``` +void * http_state_create(struct http_request *req, size_t len, void (*onfree)(struct http_request *)) +``` + +### Description + +Creates an HTTP state machine. + +| Parameter | Description | +| --- | --- | +| req | The HTTP request. | +| len | Size of the state context. | +| onfree | Callback function called when an HTTP request is being free'd. | + +### Returns + +The state context. + +--- + # http\_status\_text ### Synopsis