aboutsummaryrefslogtreecommitdiff
path: root/examples/headers
Commit message (Collapse)AuthorAgeFilesLines
* headers/main.c: Update to new handler interfaceXavier Del Campo Romero2023-11-201-2/+11
|
* Send HTTP headers to payload callbackXavier Del Campo Romero2023-11-184-0/+127
Even if libweb already parses some common headers, such as Content-Length, some users might find it interesting to inspect which headers were received from a request. Since HTTP/1.1 does not define a limit on the number of maximum headers a client can send, for security reasons a maximum value must be provided by the user. Any extra headers shall be then discarded by libweb. An example application showing this new feature is also provided.