Some documentation refactoring. No code changes. (0.39.12)
This commit is contained in:
parent
6870149094
commit
f2e319c4a4
14 changed files with 430 additions and 1 deletions
20
docs/examples/net/http_mt_server.md
Normal file
20
docs/examples/net/http_mt_server.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# http_mt_server.fun
|
||||
|
||||
- Location: examples/net/http_mt_server.fun
|
||||
- Category: Networking / HTTP (multi-threaded)
|
||||
|
||||
Description
|
||||
- Thread-per-connection HTTP server built on io/socket.fun and io/thread.fun. For each accepted client, spawns a thread and returns a small HTML page.
|
||||
|
||||
How to run
|
||||
- From the repository root:
|
||||
- export FUN_LIB_DIR="./lib"
|
||||
- ./build_debug/fun examples/net/http_mt_server.fun
|
||||
- Then open http://127.0.0.1:8080/ (or the port printed on start)
|
||||
|
||||
Requirements
|
||||
- Uses stdlib io/socket.fun and io/thread.fun. No external extensions required.
|
||||
|
||||
See also
|
||||
- docs/examples/README.md
|
||||
- docs/examples/httpserver.md (deep-dive)
|
||||
Loading…
Add table
Add a link
Reference in a new issue