mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 23:56:35 +00:00
Update MIGRATION.md (#811)
This commit is contained in:
parent
6b34909537
commit
4f1c6d1bb7
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,7 @@
|
||||||
* `HttpRequest::body()`, `HttpRequest::urlencoded()`, `HttpRequest::json()`, `HttpRequest::multipart()`
|
* `HttpRequest::body()`, `HttpRequest::urlencoded()`, `HttpRequest::json()`, `HttpRequest::multipart()`
|
||||||
method have been removed. Use `Bytes`, `String`, `Form`, `Json`, `Multipart` extractors instead.
|
method have been removed. Use `Bytes`, `String`, `Form`, `Json`, `Multipart` extractors instead.
|
||||||
|
|
||||||
instead if
|
instead of
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn index(req: &HttpRequest) -> Responder {
|
fn index(req: &HttpRequest) -> Responder {
|
||||||
|
@ -173,6 +173,7 @@
|
||||||
...
|
...
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
use
|
use
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue