1
0
Fork 0

README.md: Provide more details about features

This commit is contained in:
Xavier Del Campo Romero 2023-07-28 01:27:19 +02:00
parent 8c3ba33ced
commit 7517312290
Signed by untrusted user: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 22 additions and 0 deletions

View File

@ -22,6 +22,7 @@ the operation (see example below).
- Supports [`multiform/form-data`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)
, which makes it useful to transfer large amounts of data, such as
binary files.
- [A library](include/slweb/html.h) to write HTML programmatically.
### TLS
@ -72,6 +73,16 @@ them:
$ make
```
This would generate a static library, namely `libslweb.a`, on the project
top-level directory. Applications can then call the top-level `Makefile` by
the use of recursive `make`. For example, assuming `slweb` is contained on a
subdirectory:
```make
slweb/libslweb.a:
+cd slweb && $(MAKE)
```
#### CMake
```sh
@ -80,6 +91,17 @@ $ cmake ..
$ cmake --build .
```
A CMake target, also called `slweb`, is created. This makes it possible
to integrate `slweb` into CMake projects via `add_subdirectory` and
`target_link_libraries`. For example:
```cmake
project(example)
add_executable(${PROJECT_NAME} main.c)
add_subdirectory(slweb)
target_link_libraries(${PROJECT_NAME} PRIVATE slweb)
```
## Why this project?
Originally, `slweb` was part of the