Update README

This commit is contained in:
2025-07-22 12:03:49 +02:00
parent f888b6b0a0
commit 6412aab833
+5 -9
View File
@@ -16,20 +16,16 @@ make libchttp.a
If you used the amalgamated files, this are the flags required to build a project with cHTTP: If you used the amalgamated files, this are the flags required to build a project with cHTTP:
```bash ```bash
# Linux (no HTTPS) # Linux
gcc your_app.c chttp.c gcc your_app.c chttp.c
# Windows (no HTTPS) # Windows
gcc your_app.c chttp.c -lws2_32 gcc your_app.c chttp.c -lws2_32
# Linux (with HTTPS)
gcc your_app.c chttp.c -DHTTPS_ENABLED -lssl -lcrypto
# Windows (with HTTPS)
gcc your_app.c chttp.c -DHTTPS_ENABLED -lssl -lcrypto -lws2_32
``` ```
Ff you are using the static library, instead if adding `chttp.c`, you will need to add the `-lchttp` flag. If you are using the static library, instead if adding `chttp.c`, you will need to add the `-lchttp` flag.
By defalt the library is build without HTTPS. To enable it, add the flags `-DHTTPS_ENABLED -lssl -lcrypto`.
## Features & Limitations ## Features & Limitations