aboutsummaryrefslogtreecommitdiffstats
path: root/server.c
Commit message (Collapse)AuthorAgeFilesLines
* Add version and copyright informationverdant2026-06-091-0/+20
| | | | | When run in flag "-v" or "--version", print version and copyright information.
* Add route for directoryverdant2026-06-091-4/+14
| | | | If where the path points is a directory, path += "/index.html".
* Fix some typosverdant2026-06-091-2/+2
|
* Make file-local functions as staticverdant2026-06-091-4/+4
| | | | No functional changes introduced.
* Print usage when no argumentverdant2026-06-091-0/+9
| | | | The program needs a argument to specific which port it works on.
* Remove unused a variableverdant2026-06-091-1/+1
|
* Use handle_client instead send file by handverdant2026-06-091-5/+1
|
* Print some debugging informationverdant2026-06-091-0/+3
|
* Check if the file exists before send, or send a 404 fileverdant2026-06-091-0/+52
|
* Simplify shsd_sendfile() functionverdant2026-06-091-3/+7
|
* Add shsd_sendfile() functionverdant2026-06-091-9/+13
|
* Use sendfile() instead foreach to send single charverdant2026-06-091-3/+10
|
* Initial commitverdant2026-06-091-0/+87