An extensible and efficient forward-thinking web server for the future.
Kvarn is a rethought web server tailored for the current needs from web application developers.
It handles several things for you, including
- Compression of body
- Correct and performant HTTP/1 and HTTP/2
- Common API across HTTP/1 and HTTP/2
- Easy integration with HTTP/2 push promises
- Five types of extensions, all backed with intuitive macros
- Optional encryption with
- Several checks for illegal requests
kvarn-cache-controlheader limits server cache lifetimes
A battle-tested reference implementation can be found at GitHub. It powers my two websites with minimal resource requirements.
pub use error::default as default_error;
pub use error::default_response as default_error_response;
pub use extensions::Extensions;
pub use extensions::Id;
pub use read::file as read_file;
pub use read::file_cached as read_file_cached;
serverheader. Can also be used for identifying the client when using Kvarn as a reverse-proxy.
handle_cache(). It will also recognize which host should handle the connection.
Requestused within Kvarn.