mirror of https://github.com/fafhrd91/actix-web
Prepare change log
This commit is contained in:
parent
91b66de6be
commit
1da065fb7d
|
@ -1,5 +1,13 @@
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.8.0] - 2019-xx-xx
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
|
||||||
|
* `StaticFiles` no longer redirects to index file and instead attempts to return its content
|
||||||
|
|
||||||
|
* `StaticFiles` configuration is moved to `StaticFileConfig` completely.
|
||||||
|
|
||||||
## [0.7.15] - 2018-xx-xx
|
## [0.7.15] - 2018-xx-xx
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
33
MIGRATION.md
33
MIGRATION.md
|
@ -1,3 +1,12 @@
|
||||||
|
## 0.8.0
|
||||||
|
|
||||||
|
`StaticFiles` configuration methods are removed:
|
||||||
|
|
||||||
|
- `show_files_listing` - use custom configuration with `StaticFileConfig::show_index`
|
||||||
|
- `files_listing_renderer` - use custom configuration with `StaticFileConfig::directory_listing`
|
||||||
|
- `index_file` - use custom configuration with `StaticFileConfig::index_file`
|
||||||
|
- `default_handler` - use custom configuration with `StaticFileConfig::default_handler`
|
||||||
|
|
||||||
## 0.7.15
|
## 0.7.15
|
||||||
|
|
||||||
* The `' '` character is not percent decoded anymore before matching routes. If you need to use it in
|
* The `' '` character is not percent decoded anymore before matching routes. If you need to use it in
|
||||||
|
@ -36,9 +45,9 @@
|
||||||
|
|
||||||
* `HttpRequest` does not implement `Stream` anymore. If you need to read request payload
|
* `HttpRequest` does not implement `Stream` anymore. If you need to read request payload
|
||||||
use `HttpMessage::payload()` method.
|
use `HttpMessage::payload()` method.
|
||||||
|
|
||||||
instead of
|
instead of
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn index(req: HttpRequest) -> impl Responder {
|
fn index(req: HttpRequest) -> impl Responder {
|
||||||
req
|
req
|
||||||
|
@ -64,8 +73,8 @@
|
||||||
trait uses `&HttpRequest` instead of `&mut HttpRequest`.
|
trait uses `&HttpRequest` instead of `&mut HttpRequest`.
|
||||||
|
|
||||||
* Removed `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
* Removed `Route::with2()` and `Route::with3()` use tuple of extractors instead.
|
||||||
|
|
||||||
instead of
|
instead of
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn index(query: Query<..>, info: Json<MyStruct) -> impl Responder {}
|
fn index(query: Query<..>, info: Json<MyStruct) -> impl Responder {}
|
||||||
|
@ -81,7 +90,7 @@
|
||||||
|
|
||||||
* `Handler::handle()` accepts reference to `HttpRequest<_>` instead of value
|
* `Handler::handle()` accepts reference to `HttpRequest<_>` instead of value
|
||||||
|
|
||||||
* Removed deprecated `HttpServer::threads()`, use
|
* Removed deprecated `HttpServer::threads()`, use
|
||||||
[HttpServer::workers()](https://actix.rs/actix-web/actix_web/server/struct.HttpServer.html#method.workers) instead.
|
[HttpServer::workers()](https://actix.rs/actix-web/actix_web/server/struct.HttpServer.html#method.workers) instead.
|
||||||
|
|
||||||
* Renamed `client::ClientConnectorError::Connector` to
|
* Renamed `client::ClientConnectorError::Connector` to
|
||||||
|
@ -90,7 +99,7 @@
|
||||||
* `Route::with()` does not return `ExtractorConfig`, to configure
|
* `Route::with()` does not return `ExtractorConfig`, to configure
|
||||||
extractor use `Route::with_config()`
|
extractor use `Route::with_config()`
|
||||||
|
|
||||||
instead of
|
instead of
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -101,11 +110,11 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
use
|
use
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let app = App::new().resource("/index.html", |r| {
|
let app = App::new().resource("/index.html", |r| {
|
||||||
r.method(http::Method::GET)
|
r.method(http::Method::GET)
|
||||||
|
@ -135,12 +144,12 @@
|
||||||
* `HttpRequest::extensions()` returns read only reference to the request's Extension
|
* `HttpRequest::extensions()` returns read only reference to the request's Extension
|
||||||
`HttpRequest::extensions_mut()` returns mutable reference.
|
`HttpRequest::extensions_mut()` returns mutable reference.
|
||||||
|
|
||||||
* Instead of
|
* Instead of
|
||||||
|
|
||||||
`use actix_web::middleware::{
|
`use actix_web::middleware::{
|
||||||
CookieSessionBackend, CookieSessionError, RequestSession,
|
CookieSessionBackend, CookieSessionError, RequestSession,
|
||||||
Session, SessionBackend, SessionImpl, SessionStorage};`
|
Session, SessionBackend, SessionImpl, SessionStorage};`
|
||||||
|
|
||||||
use `actix_web::middleware::session`
|
use `actix_web::middleware::session`
|
||||||
|
|
||||||
`use actix_web::middleware::session{CookieSessionBackend, CookieSessionError,
|
`use actix_web::middleware::session{CookieSessionBackend, CookieSessionError,
|
||||||
|
|
Loading…
Reference in New Issue