| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix design issues with async responses, add async example | Xavier Del Campo Romero | 2025-10-06 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | struct http_response did not provide users any void * that could be used to maintain a state between calls to an asynchronous HTTP response. On the other hand, the user pointer could not be used for this purpose, since it is shared among all HTTP clients for a given struct handler instance. Moreover, the length callback was still not supporting this feature, which in fact might be required by some users. Implementing this was particularly challenging, as this broke the current assumption that all bytes on a call to http_read were being processed. Now, since a client request can only be partially processed because of the length callback, http_read must take this into account so that the remaining bytes are still available for future calls, before reading again from the file descriptor. | ||||
| * | Implement form interface | Xavier Del Campo Romero | 2025-10-02 | 1 | -0/+1 |
| | | | | | | This new interface allows library users to parse application/x-www-form-urlencoded data conveniently. | ||||
| * | Add PUT server example | Xavier Del Campo | 2023-11-20 | 1 | -0/+1 |
| | | |||||
| * | Send HTTP headers to payload callback | Xavier Del Campo Romero | 2023-11-18 | 1 | -0/+1 |
| | | | | | | | | | | | | | 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. | ||||
| * | Add HTML serializer example | Xavier Del Campo Romero | 2023-09-15 | 1 | -0/+1 |
| | | |||||
| * | Add hello world example | Xavier Del Campo Romero | 2023-08-09 | 1 | -0/+2 |
