wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
httpx.h
Go to the documentation of this file.
1#ifndef WIRED_SRVRUN_HTTPX_H
2#define WIRED_SRVRUN_HTTPX_H
3
6
9
18int wired_http_reply_text(wired_http_exchange* x, u16 status, const char* text);
19
29 wired_http_exchange* x, const char* name, const char* value);
30
31#endif
int wired_http_reply_text(wired_http_exchange *x, u16 status, const char *text)
Answer x with a text/plain body: sets status (0 = 200), content_type and appends text to x->body (cut...
int wired_http_add_field(wired_http_exchange *x, const char *name, const char *value)
Append the response header field name: value to x (first round only).
The complete server event loop: the sanctioned socket-owning layer over the socket-free srvboot/srvlo...
One request/response exchange handed to a wired_http_handler.
Definition srvrun.h:183
Linux direct syscalls.
unsigned short u16
unsigned 16-bit integer
Definition types.h:17