mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
fix layout
This commit is contained in:
parent
0457fe4d61
commit
33326ea41b
11
MIGRATION.md
11
MIGRATION.md
@ -2,20 +2,21 @@
|
||||
|
||||
* `actix::System` has new api.
|
||||
|
||||
Instead of
|
||||
Instead of
|
||||
|
||||
```run
|
||||
```rust
|
||||
fn main() {
|
||||
let sys = actix::System::new(..);
|
||||
|
||||
HttpServer::new(|| ...).start()
|
||||
|
||||
sys.run();
|
||||
}
|
||||
```
|
||||
|
||||
Server must be initialized within system run closure:
|
||||
|
||||
```run
|
||||
```rust
|
||||
fn main() {
|
||||
actix::System::run(|| {
|
||||
HttpServer::new(|| ...).start()
|
||||
@ -32,7 +33,7 @@
|
||||
* Removed deprecated `HttpServer::threads()`, use `HttpServer::workers()` instead.
|
||||
|
||||
|
||||
## Migration from 0.5 to 0.6
|
||||
## 0.6
|
||||
|
||||
* `Path<T>` extractor return `ErrorNotFound` on failure instead of `ErrorBadRequest`
|
||||
|
||||
@ -84,7 +85,7 @@
|
||||
you need to use `use actix_web::ws::WsWriter`
|
||||
|
||||
|
||||
## Migration from 0.4 to 0.5
|
||||
## 0.5
|
||||
|
||||
* `HttpResponseBuilder::body()`, `.finish()`, `.json()`
|
||||
methods return `HttpResponse` instead of `Result<HttpResponse>`
|
||||
|
Loading…
Reference in New Issue
Block a user