mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 16:02:59 +01:00
update readme.
This commit is contained in:
parent
d5b2640342
commit
7a97de3a1e
@ -19,9 +19,6 @@ extern crate actix_http;
|
||||
use actix_http::{h1, Response, ServiceConfig};
|
||||
|
||||
fn main() {
|
||||
env::set_var("RUST_LOG", "framed_hello=info");
|
||||
env_logger::init();
|
||||
|
||||
Server::new().bind("framed_hello", "127.0.0.1:8080", || {
|
||||
IntoFramed::new(|| h1::Codec::new(ServiceConfig::default())) // <- create h1 codec
|
||||
.and_then(TakeItem::new().map_err(|_| ())) // <- read one request
|
||||
|
Loading…
Reference in New Issue
Block a user