feat(http): add step for parsing content-length header
This commit is contained in:
parent
7a21bed2b2
commit
fbf6557c05
3 changed files with 43 additions and 2 deletions
|
|
@ -166,6 +166,13 @@ bool http_loop_step_body_to_buf(event_loop_conn *conn);
|
|||
*/
|
||||
bool http_loop_step_body_to_file(event_loop_conn *conn);
|
||||
|
||||
/**
|
||||
* Try to parse the Content-Length header.
|
||||
*
|
||||
* @param conn connection to process
|
||||
*/
|
||||
bool http_loop_step_parse_content_length(event_loop_conn *conn);
|
||||
|
||||
/**
|
||||
* Authenticate the request using the X-Api-Key header.
|
||||
*
|
||||
|
|
@ -201,7 +208,7 @@ bool http_loop_step_write_body(event_loop_conn *conn);
|
|||
* Initialize a new http loop.
|
||||
*
|
||||
* @param routes array of routes that should be served
|
||||
* @parma route_count how many elements are in `routes`
|
||||
* @param route_count how many elements are in `routes`
|
||||
* @param custom_gctx the application's custom global context; can be NULL
|
||||
* @param custom_ctx_init function to initialize a new custom context
|
||||
* @param custom_ctx_reset function to reset a custom context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue