Changes
Added
-
Added
HttpServer::maxconn()
andHttpServer::maxconnrate()
,
accept backpressure #250 -
Allow to customize connection handshake process via
HttpServer::listen_with()
andHttpServer::bind_with()
methods -
Support making client connections via
tokio-uds
'sUnixStream
when "uds" feature is enabled #472
Changed
-
It is allowed to use function with up to 10 parameters for handler with
extractor parameters
.
Route::with_config()
/Route::with_async_config()
always passes configuration objects as tuple
even for handler with one parameter. -
native-tls - 0.2
-
Content-Disposition
is re-worked. Its parser is now more robust and handles quoted content better. See #461
Fixed
-
Use zlib instead of raw deflate for decoding and encoding payloads with
Content-Encoding: deflate
. -
Fixed headers formating for CORS Middleware Access-Control-Expose-Headers #436
-
Fix adding multiple response headers #446
-
Client includes port in HOST header when it is not default(e.g. not 80 and 443). #448
-
Panic during access without routing being set #452
-
Fixed http/2 error handling
Deprecated
-
HttpServer::no_http2()
is deprecated, useOpensslAcceptor::with_flags()
or
RustlsAcceptor::with_flags()
instead -
HttpServer::listen_tls()
,HttpServer::listen_ssl()
,HttpServer::listen_rustls()
have been
deprecated in favor ofHttpServer::listen_with()
with specificacceptor
. -
HttpServer::bind_tls()
,HttpServer::bind_ssl()
,HttpServer::bind_rustls()
have been
deprecated in favor ofHttpServer::bind_with()
with specificacceptor
.