File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " conduit"
4
- version = " 0.6.6 "
4
+ version = " 0.7.0 "
5
5
authors = [" wycats@gmail.com" ,
6
6
" Alex Crichton <alex@alexcrichton.com>" ]
7
7
description = " Common HTTP server interface"
Original file line number Diff line number Diff line change 1
- #![ feature( core, old_io , alloc) ]
1
+ #![ feature( core, io , alloc, net ) ]
2
2
3
3
extern crate semver;
4
4
5
+ use std:: io:: prelude:: * ;
5
6
use std:: collections:: HashMap ;
6
7
use std:: error:: Error ;
7
- use std:: old_io :: net:: ip :: IpAddr ;
8
+ use std:: net:: IpAddr ;
8
9
9
10
pub use self :: typemap:: TypeMap ;
10
11
mod typemap;
@@ -81,7 +82,7 @@ pub trait Request {
81
82
fn headers < ' a > ( & ' a self ) -> & ' a Headers ;
82
83
83
84
/// A Reader for the body of the request
84
- fn body < ' a > ( & ' a mut self ) -> & ' a mut Reader ;
85
+ fn body < ' a > ( & ' a mut self ) -> & ' a mut Read ;
85
86
86
87
/// A readable map of extensions
87
88
fn extensions < ' a > ( & ' a self ) -> & ' a Extensions ;
@@ -110,7 +111,7 @@ pub struct Response {
110
111
pub headers : HashMap < String , Vec < String > > ,
111
112
112
113
/// A Writer for body of the response
113
- pub body : Box < Reader + Send >
114
+ pub body : Box < Read + Send >
114
115
}
115
116
116
117
/// A Handler takes a request and returns a response or an error.
You can’t perform that action at this time.
0 commit comments