#include <anch_rest_nginx.h>
Public Attributes | |
| void * | ctx |
| size_t(*) | read (void *ctx, char *data, size_t size) |
Request body reader
| void* anch_rest_body_reader_t::ctx |
Reader context
| size_t(*) anch_rest_body_reader_t::read(void *ctx, char *data, size_t size) |
Read body data: blocks until data is available
| ctx | the reader context |
| data | the buffer to fill |
| size | the buffer size |
1 ), 0 at the end of body, ANCH_REST_READ_ERROR on error (client closed connection, timeout, body too large, ...)