Releases: actix/actix-web
Actix web 0.7.4
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
.
Actix web 0.7.3
Actix web 0.7.2
Changes
Added
-
Add implementation of
FromRequest<S>
forOption<T>
andResult<T, Error>
-
Allow to handle application prefix, i.e. allow to handle
/app
path
for application with/app
prefix.
CheckApp::prefix()
api doc. -
Add
CookieSessionBackend::http_only
method to setHttpOnly
directive of cookies
Changed
-
Upgrade to cookie 0.11
-
Removed the timestamp from the default logger middleware
Fixed
Actix web 0.7.1
Actix web 0.7.0
Changes
Added
-
Add
fs::StaticFileConfig
to provide means of customizing static
file services. It allows to mapmime
toContent-Disposition
,
specify whether to useETag
andLast-Modified
and allowed methods. -
Add
.has_prefixed_resource()
method torouter::ResourceInfo
for route matching with prefix awareness -
Add
HttpMessage::readlines()
for reading line by line. -
Add
ClientRequestBuilder::form()
for sendingapplication/x-www-form-urlencoded
requests. -
Add method to configure custom error handler to
Form
extractor. -
Add methods to
HttpResponse
to retrieve, add, and delete cookies -
Add
.set_content_type()
and.set_content_disposition()
methods
tofs::NamedFile
to allow overriding the values inferred by default -
Add
fs::file_extension_to_mime()
helper function to get the MIME
type for a file extension -
Add
.content_disposition()
method to parse Content-Disposition of
multipart fields -
Re-export
actix::prelude::*
asactix_web::actix
module. -
HttpRequest::url_for_static()
for a named route with no variables segments -
Propagation of the application's default resource to scopes that haven't set a default resource.
Changed
-
Min rustc version is 1.26
-
Use tokio instead of tokio-core
-
CookieSessionBackend
sets percent encoded cookies for outgoing HTTP messages. -
Became possible to use enums with query extractor.
Issue #371.
Example -
HttpResponse::into_builder()
now moves cookies into the builder
instead of dropping them -
For safety and performance reasons
Handler::handle()
uses&self
instead of&mut self
-
Handler::handle()
uses&HttpRequest
instead ofHttpRequest
-
Added header
User-Agent: Actix-web/<current_version>
to default headers when building a request -
port
Extensions
type from http create, we don't needSend + Sync
-
HttpRequest::query()
returnsRef<HashMap<String, String>>
-
HttpRequest::cookies()
returnsRef<Vec<Cookie<'static>>>
-
StaticFiles::new()
returnsResult<StaticFiles<S>, Error>
instead ofStaticFiles<S>
-
StaticFiles
uses the default handler if the file does not exist
Removed
-
Remove
Route::with2()
andRoute::with3()
use tuple of extractors instead. -
Remove
HttpMessage::range()
Actix web 0.6.15
Actix web 0.6.14
Changes
Added
- Allow to disable masking for websockets client
Fixed
- SendRequest execution fails with the "internal error: entered unreachable code" #329
Actix web 0.6.13
Actix web 0.6.11
Changes
-
Support chunked encoding for UrlEncoded body #262
-
HttpRequest::url_for()
for a named route with no variables segments #265 -
Middleware::response()
is not invoked if error result was returned by anotherMiddleware::start()
#255 -
CORS: Do not validate Origin header on non-OPTION requests #271
-
Fix multipart upload "Incomplete" error #282