mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Update README
This commit is contained in:
parent
a1df576e4f
commit
bb8e45383e
@ -183,6 +183,15 @@ The followings are built-in mappings:
|
|||||||
| webm | video/webm | zip | application/zip |
|
| webm | video/webm | zip | application/zip |
|
||||||
| mp3 | audio/mp3 | wasm | application/wasm |
|
| mp3 | audio/mp3 | wasm | application/wasm |
|
||||||
|
|
||||||
|
### File request handler
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
// The handler is called right before the response is sent to a client
|
||||||
|
svr.set_file_request_handler([](const Request &req, Response &res) {
|
||||||
|
...
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
NOTE: These static file server methods are not thread-safe.
|
NOTE: These static file server methods are not thread-safe.
|
||||||
|
|
||||||
### Logging
|
### Logging
|
||||||
|
Loading…
x
Reference in New Issue
Block a user