mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
update changes
This commit is contained in:
parent
040d9d2755
commit
8cb510293d
24
CHANGES.md
24
CHANGES.md
@ -1,19 +1,21 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## [0.7.0] - 2018-07-17
|
## [0.7.0] - 2018-07-21
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* Add `fs::StaticFileConfig` to provide means of customizing static file services. It allows to map
|
* Add `fs::StaticFileConfig` to provide means of customizing static
|
||||||
`mime` to `Content-Disposition`, specify whether to use `ETag` and `Last-Modified` and allowed methods.
|
file services. It allows to map `mime` to `Content-Disposition`,
|
||||||
|
specify whether to use `ETag` and `Last-Modified` and allowed methods.
|
||||||
|
|
||||||
* Add `.has_prefixed_resource()` method to `router::ResourceInfo` for route matching with prefix awareness
|
* Add `.has_prefixed_resource()` method to `router::ResourceInfo`
|
||||||
|
for route matching with prefix awareness
|
||||||
|
|
||||||
* Add `HttpMessage::readlines()` for reading line by line.
|
* Add `HttpMessage::readlines()` for reading line by line.
|
||||||
|
|
||||||
* Add `ClientRequestBuilder::form()` for sending `application/x-www-form-urlencoded` requests.
|
* Add `ClientRequestBuilder::form()` for sending `application/x-www-form-urlencoded` requests.
|
||||||
|
|
||||||
* Add method to configure custom error handler to Form extractor.
|
* Add method to configure custom error handler to `Form` extractor.
|
||||||
|
|
||||||
* Add methods to `HttpResponse` to retrieve, add, and delete cookies
|
* Add methods to `HttpResponse` to retrieve, add, and delete cookies
|
||||||
|
|
||||||
@ -35,17 +37,19 @@
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
* Min rustc version is 1.26
|
||||||
|
|
||||||
|
* Use tokio instead of tokio-core
|
||||||
|
|
||||||
* `CookieSessionBackend` sets percent encoded cookies for outgoing HTTP messages.
|
* `CookieSessionBackend` sets percent encoded cookies for outgoing HTTP messages.
|
||||||
|
|
||||||
* Became possible to use enums with query extractor. Issue [#371](https://github.com/actix/actix-web/issues/371). [Example](https://github.com/actix/actix-web/blob/master/tests/test_handlers.rs#L94-L134)
|
* Became possible to use enums with query extractor.
|
||||||
|
Issue [#371](https://github.com/actix/actix-web/issues/371).
|
||||||
* Min rustc version is 1.26
|
[Example](https://github.com/actix/actix-web/blob/master/tests/test_handlers.rs#L94-L134)
|
||||||
|
|
||||||
* `HttpResponse::into_builder()` now moves cookies into the builder
|
* `HttpResponse::into_builder()` now moves cookies into the builder
|
||||||
instead of dropping them
|
instead of dropping them
|
||||||
|
|
||||||
* Use tokio instead of tokio-core
|
|
||||||
|
|
||||||
* For safety and performance reasons `Handler::handle()` uses `&self` instead of `&mut self`
|
* For safety and performance reasons `Handler::handle()` uses `&self` instead of `&mut self`
|
||||||
|
|
||||||
* `Handler::handle()` uses `&HttpRequest` instead of `HttpRequest`
|
* `Handler::handle()` uses `&HttpRequest` instead of `HttpRequest`
|
||||||
|
Loading…
Reference in New Issue
Block a user