1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

rearrange exports

This commit is contained in:
Nikolay Kim
2017-12-07 16:40:29 -08:00
parent 968f5d39d6
commit dff7618f35
5 changed files with 19 additions and 11 deletions

View File

@ -12,6 +12,7 @@ if this methods get call for the same builder instance, builder will panic.
```rust
# extern crate actix_web;
use actix_web::*;
use actix_web::headers::ContentEncoding;
fn index(req: HttpRequest) -> HttpResponse {
HttpResponse::Ok()
@ -45,6 +46,7 @@ to enable `brotli` response's body compression use `ContentEncoding::Br`:
```rust
# extern crate actix_web;
use actix_web::*;
use actix_web::headers::ContentEncoding;
fn index(req: HttpRequest) -> HttpResponse {
HttpResponse::Ok()