aboutsummaryrefslogtreecommitdiff
path: root/examples/hello/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add HTTP op and resource to length callbackXavier Del Campo Romero2026-02-121-3/+3
| | | | | | Users might want to know which HTTP operation (i.e., POST or PUT) and/or resource is being requested before determining whether the request should be accepted or not.
* Move signal handling to processesXavier Del Campo Romero2024-08-221-7/+70
| | | | | | | | | | | | | | So far, libweb installed a signal handler so as to handle SIGTERM, SIGPIPE and SIGINT signals so that processes would not have to care about such details. However, it is not advisable for libraries to install signal handlers, as signals are handled on a per-process basis. The previous approach would be incompatible if several instances of the library were allocated by the same process. Unfortunately, this has the undesired side effect of adding the boilerplate code into the process.
* examples/hello: Update according to handler_loopXavier Del Campo2023-11-201-2/+11
|
* Rename project from slweb to libwebv0.1.0-rc3Xavier Del Campo Romero2023-10-111-4/+4
| | | | | | | | | | | | 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.
* hello/main.c: Add missing length callbackXavier Del Campo Romero2023-09-071-1/+17
| | | | | Even if the feature is unsupported by the application, slweb requires `length` to be a valid function pointer.
* Add hello world exampleXavier Del Campo Romero2023-08-091-0/+101