blob: 79c57fcf325bf2d489daf2bc043a45ab8acc3a94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# "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`](../../CMakeLists.txt).
## How to run
Run the executable without any command line arguments.
|