<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/libweb, branch chunk</title>
<subtitle>Small and lightweight web framework written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/libweb/atom?h=chunk</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/libweb/atom?h=chunk'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/'/>
<updated>2025-10-07T10:43:25+00:00</updated>
<entry>
<title>WIP chunk encoding</title>
<updated>2025-10-07T10:43:25+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-10-06T21:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=b9d9328956c656f0e9a007b8810cadafbe531c48'/>
<id>urn:sha1:b9d9328956c656f0e9a007b8810cadafbe531c48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow custom backlog connections</title>
<updated>2025-10-06T19:03:59+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-10-06T19:03:59+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=db9cb051c4ee05c07ab32dfed5bae8b7dc0916bd'/>
<id>urn:sha1:db9cb051c4ee05c07ab32dfed5bae8b7dc0916bd</id>
<content type='text'>
libweb calls listen(2) when setting up the HTTP server, and its backlog
argument was hardcoded to 10. While probably not an issue for some
applications, it can be too limiting for some others.

Therefore, it is desirable to allow library users to set up their own
limits. Otherwise, 10 is still chosen as a sane default.
</content>
</entry>
<entry>
<title>libweb_http.7: Add note about HTTP responses</title>
<updated>2025-10-06T14:27:21+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-10-06T14:27:21+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=4918cf87d3cf5d3dd8425fe10d97a06282472df6'/>
<id>urn:sha1:4918cf87d3cf5d3dd8425fe10d97a06282472df6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix design issues with async responses, add async example</title>
<updated>2025-10-06T13:51:00+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-10-05T23:23:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=3e4c7c993bbbe2bdeb563fa888b900d01c4be4a1'/>
<id>urn:sha1:3e4c7c993bbbe2bdeb563fa888b900d01c4be4a1</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Implement form interface</title>
<updated>2025-10-02T13:52:14+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-09-30T21:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=a0f5f7509bb9040752fa61fe0fdb447608e22b1c'/>
<id>urn:sha1:a0f5f7509bb9040752fa61fe0fdb447608e22b1c</id>
<content type='text'>
This new interface allows library users to parse
application/x-www-form-urlencoded data conveniently.
</content>
</entry>
<entry>
<title>examples: Add distclean target</title>
<updated>2025-10-02T13:48:04+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-10-02T13:40:03+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=bba0b62f4e9e17927b9a2cda51dd5a4aa1b1f14e'/>
<id>urn:sha1:bba0b62f4e9e17927b9a2cda51dd5a4aa1b1f14e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>examples/Makefile: Increase flexibility</title>
<updated>2025-10-02T13:48:04+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-10-02T13:44:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=9be656dfed53783036c7ae1edae04060b451d6df'/>
<id>urn:sha1:9be656dfed53783036c7ae1edae04060b451d6df</id>
<content type='text'>
The former implementation required redundant code for every new
directory.
</content>
</entry>
<entry>
<title>html.c: Replace \n with &lt;br&gt; on html_encode</title>
<updated>2025-09-27T22:13:42+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-09-27T22:13:17+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=a13b91d64c96670caff1ea9830b7e4a90ad81eaa'/>
<id>urn:sha1:a13b91d64c96670caff1ea9830b7e4a90ad81eaa</id>
<content type='text'>
This replacement can come in handy for library users dealing with
multi-line user-generated content.
</content>
</entry>
<entry>
<title>html: Make html_encode public</title>
<updated>2025-09-27T22:12:57+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-09-27T18:48:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=94ddbec88e57fe742f219a30145650165887f22c'/>
<id>urn:sha1:94ddbec88e57fe742f219a30145650165887f22c</id>
<content type='text'>
Among other reasons, this function can be useful to sanitize
user-generated content before assigning it do a node.
</content>
</entry>
<entry>
<title>html.c: Do not recurse on siblings</title>
<updated>2025-09-27T18:48:09+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2025-09-27T18:48:09+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/libweb/commit/?id=bdfbd076f2d3e7212f300bf5edbbad1934fae324'/>
<id>urn:sha1:bdfbd076f2d3e7212f300bf5edbbad1934fae324</id>
<content type='text'>
It is not required to do so. Otherwise, nodes with many siblings could
lead to a very deep call stack for no reason.
</content>
</entry>
</feed>
