libweb/examples/hello
Xavier Del Campo c9edbbc4b0
examples/hello: Update according to handler_loop
2023-11-20 16:06:20 +01:00
..
CMakeLists.txt Rename project from slweb to libweb 2023-10-11 00:07:13 +02:00
Makefile examples: Fix wrong library name 2023-10-25 14:10:52 +02:00
README.md examples/hello: Update according to handler_loop 2023-11-20 16:06:20 +01:00
main.c examples/hello: Update according to handler_loop 2023-11-20 16:06:20 +01:00

README.md

"Hello world" example

This example shows a minimal setup for an application using libweb. When executed, it starts a HTTP/1.1 server on a random port, which is then printed to the standard output, and returns an example website when either / or /index.html are accessed by clients, reading:

Hello from libweb!

How to build

If using make(1), just run make from this directory.

If using CMake, examples are built by default when configuring the project from the top-level CMakeLists.txt.

How to run

Run the executable without any command line arguments.