Skip to content

Commit

Permalink
feat(server): make Http default its body type to hyper::Chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 23, 2017
1 parent ee58409 commit dc97dd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/end_to_end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ fn spawn_hello(handle: &Handle) -> SocketAddr {
let addr = listener.local_addr().unwrap();

let handle2 = handle.clone();
let http = hyper::server::Http::new();
handle.spawn(listener.incoming().for_each(move |(socket, addr)| {
let http = hyper::server::Http::new();
http.bind_connection(&handle2, socket, addr, Hello);
Ok(())
}).then(|_| Ok(())));
Expand Down
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod response;
/// This structure is used to create instances of `Server` or to spawn off tasks
/// which handle a connection to an HTTP server. Each instance of `Http` can be
/// configured with various protocol-level options such as keepalive.
pub struct Http<B> {
pub struct Http<B = ::Chunk> {
keep_alive: bool,
_marker: PhantomData<B>,
}
Expand Down

0 comments on commit dc97dd7

Please sign in to comment.