axum-server
axum-server
is a hyper
server implementation designed to be used with axum
framework.
Features
- Conveniently bind to any number of addresses.
- Tls support through
rustls
. Onlypem
format is supported for certificates. - Access to client ip address from services/handlers.
- Record incoming and outgoing bytes for each connection.
- Services created by
axum
can directly be served. - Although designed to be used with
axum
, anyService
that implementsClone
can be served.
Usage example
axum
"Hello, World!" example can be run like:
use ;
async
Safety
This crate uses #![forbid(unsafe_code)]
to ensure everything is implemented in 100% safe Rust.
License
This project is licensed under the MIT license.