1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-20 23:26:44 +00:00

fix layout

This commit is contained in:
Nikolay Kim 2018-06-02 09:25:11 -07:00
parent 0457fe4d61
commit 33326ea41b

View file

@ -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>`