AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch_rest_body_reader_t Struct Reference

#include <anch_rest_nginx.h>

Collaboration diagram for anch_rest_body_reader_t:

Public Attributes

void * ctx
size_t(*) read (void *ctx, char *data, size_t size)

Detailed Description

Request body reader

Member Data Documentation

◆ ctx

void* anch_rest_body_reader_t::ctx

Reader context

◆ read

size_t(*) anch_rest_body_reader_t::read(void *ctx, char *data, size_t size)

Read body data: blocks until data is available

Parameters
ctxthe reader context
datathe buffer to fill
sizethe buffer size
Returns
the number of read bytes (at least 1 ), 0 at the end of body, ANCH_REST_READ_ERROR on error (client closed connection, timeout, body too large, ...)

The documentation for this struct was generated from the following file: