https://github.com/werdl/servt
a programmatic HTTP/1.1 server, with very few dependencies, written in Rust
https://github.com/werdl/servt
async-rust http http1-1 network-programming rust web-server
Last synced: 2 months ago
JSON representation
a programmatic HTTP/1.1 server, with very few dependencies, written in Rust
- Host: GitHub
- URL: https://github.com/werdl/servt
- Owner: werdl
- License: mit
- Created: 2024-02-14T07:01:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-15T09:32:53.000Z (over 1 year ago)
- Last Synced: 2024-03-14T12:05:36.679Z (about 1 year ago)
- Topics: async-rust, http, http1-1, network-programming, rust, web-server
- Language: Rust
- Homepage: https://crates.io/crates/servt
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `servt`
> a programmatic web server, with very few dependencies.
## why
- many big frameworks are too heavy for small projects, or don't suit yours (or my!) development style
- so this is small, easy to use, but still powerful
## features
### `async`
- enabled by default, adds `smol` as a dependency (adds around 35 deps)
- executes all requests by spawning a new task
- if not enabled, falls back to `std::thread` (which spawns a new thread for each request)
### `time`
- enabled by default, adds `chrono` as a dependency (adds around 2 deps, as the features enabled are very few, namely `alloc` and `now`)
- adds a `Date` header to all responses
- this is technically required by the HTTP/1.1 spec, but the majority of clients will work without it