Moved WriteStatus, Fresh, and Streaming in to the net module.

This commit is contained in:
Jonathan Reem
2014-09-10 15:20:14 -07:00
committed by Sean McArthur
parent d5c6f33c34
commit 4115c0e219
5 changed files with 26 additions and 37 deletions

View File

@@ -8,9 +8,9 @@ use std::io::net::ip::Ipv4Addr;
use std::sync::Arc;
use hyper::{Get, Post};
use hyper::server::{Server, Handler, Incoming, Request, Response, Fresh};
use hyper::server::{Server, Handler, Incoming, Request, Response};
use hyper::header::common::ContentLength;
use hyper::net::{HttpStream, HttpAcceptor};
use hyper::net::{HttpStream, HttpAcceptor, Fresh};
trait ConcurrentHandler: Send + Sync {
fn handle(&self, req: Request, res: Response<Fresh>);