|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
The application's request responder: the callback and its opaque context, registered on the loop as a pair (wired_srvloop_set_handler takes the same pair). More...
#include <srvrun.h>
Data Fields | |
| wired_srvloop_handler | cb |
| the response-body builder callback | |
| void * | ctx |
| opaque context passed back to cb / http | |
| wired_http_handler | http |
| status- and header-aware responder; when set it is used instead of cb (0 keeps cb) | |
| wired_srvloop_on_body | on_body |
| streams each request body here before the responder runs (see wired_srvloop_on_body for the sequencing); 0 buffers the body whole into req->body, up to one request window | |
The application's request responder: the callback and its opaque context, registered on the loop as a pair (wired_srvloop_set_handler takes the same pair).
Example, answering a redirect: