v0.3.0
版本发布时间: 2021-11-10 17:36:34
programatik29/axum-server最新发布版本:v0.7.1(2024-07-31 21:41:38)
- Total rewrite of source code.
-
Major api changes:
-
breaking: Removed
bind_rustls
,certificate
,certificate_file
,loader
,new
,private_key
,private_key_file
,serve_and_record
,tls_config
methods fromServer
. -
breaking: Removed
tls
module. -
breaking: Removed
record
module and feature. -
breaking: Removed
Handle::listening_addrs
method. -
breaking:
Server::bind
method doesn't takeself
anymore and creates anServer
. -
breaking:
bind
method now takes aSocketAddr
. -
breaking:
bind_rustls
method now takes aSocketAddr
and antls_rustls::RustlsConfig
. -
breaking:
Server::serve
method now takes aMakeService
. -
breaking:
Handle::listening
method now returnsSocketAddr
. -
added: Added
Handle::connection_count
that can be used to get alive connection count. -
added: Added
service
module. -
added: Added
service::MakeServiceRef
andservice::SendService
traits aliases for convenience. -
added: Added
accept
module. -
added: Added
accept::Accept
trait that can be implemented to modify io stream and service. -
added: Added
accept::DefaultAcceptor
struct that implementsaccept::Accept
to be used as a default 'Accept' for 'Server'. -
added: Added
Server::acceptor
method that can be used to provide a customaccept::Accept
. -
added: Added
tls_rustls
module. -
added: Added
tls_rustls::RustlsAcceptor
that can be used withServer::acceptor
to make a tlsServer
. -
added: Added
tls_rustls::RustlsConfig
to create rustls utilities and to provide reload functionality. -
added: Added
tls_rustls::bind_rustls
which is same asbind_rustls
function.
-
breaking: Removed