Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novara754/servant
An HTTP server for serving static files written in pure C.
https://github.com/novara754/servant
Last synced: 24 days ago
JSON representation
An HTTP server for serving static files written in pure C.
- Host: GitHub
- URL: https://github.com/novara754/servant
- Owner: novara754
- License: mit
- Created: 2019-10-02T01:20:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-03T10:57:17.000Z (about 5 years ago)
- Last Synced: 2024-01-14T23:13:17.153Z (10 months ago)
- Language: C
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# servant
An HTTP server for serving static files written in pure C.
# Usage
1. Use `make` to build the project.
2. Run the server using `servant `.The server will now listen on the specified port and serve files
from the `public/` directory. This directory has to be a direct child of the
current working directory.The path of the HTTP request is appended to the path of the `public/` directory.
It has the match the file names exactly, `/` is not aliased to `/index.html`.**Notes:**
- Only GET requests are supported.
- Only HTML response are supported.## License
Licensed under the [MIT License](LICENSE.md).