Commit Graph

13 Commits

Author SHA1 Message Date
Xavier Del Campo Romero b4930f72bb
Bump version to 0.3.0 2024-02-19 23:33:27 +01:00
Xavier Del Campo Romero afe0681c0b
Limit maximum multipart/form-data pairs and files
A malicious user could inject an infinite number of empty files or
key/value pairs into a request in order to exhaust the device's
resources.
2024-02-19 23:00:56 +01:00
Xavier Del Campo Romero 6ceae16a20
Bump version to 0.2.0 2024-02-12 23:12:43 +01:00
Xavier Del Campo Romero edc855f93b
libweb_http.7: Update according to status quo 2024-02-12 23:00:03 +01:00
Xavier Del Campo Romero f9a305fe4d
libweb_html.7: Fix typo 2024-02-12 22:52:18 +01:00
Xavier Del Campo Romero fcba916011
Update copyright notices to 2024 2024-02-12 22:45:17 +01:00
Xavier Del Campo 2561ec32fe
doc: Update handler_{loop,listen} 2023-11-20 16:08:08 +01:00
Xavier Del Campo Romero 65031ca350
Send HTTP headers to payload callback
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.
2023-11-18 01:03:12 +01:00
Xavier Del Campo Romero 9e1779eacd
doc: Add man3 page for http_decode_url
Suprisingly, this man page was missing on the 0.1.0 release.

The recent signature changes on http_decode_url have already been
reflected.
2023-11-12 01:29:55 +01:00
Xavier Del Campo Romero 3e004fa6a1
Adhere to GNU Make directory variables 2023-10-25 21:57:22 +02:00
Xavier Del Campo Romero 0222b75e85
Rename project from slweb to libweb
It was found out there was another project of the same name around
(https://git.sr.ht/~strahinja/slweb/), also related to website
generation.

In order to avoid confusion, a new name has been chosen for this
project. Surprisingly, libweb was not in use by any distributions
(according to https://repology.org and AUR index), and it should
reflect well the intention behind this project i.e., being a library
to build web-related stuff.
2023-10-11 00:07:13 +02:00
Xavier Del Campo Romero a89d0e4ae3
Install man pages 2023-09-27 21:55:58 +02:00
Xavier Del Campo Romero adb0973bb3
Add man pages 2023-09-27 21:55:58 +02:00