Fixed body reading
[?]
Dec 18, 2018, 8:38 PM
ZJ4QKTJROEJK2RSY4JS7EDJMUAVXBYVXZPFIXUC5BZGVPLP5XMJACDependencies
- [2]
UCY2DO3DTry to read request body - [3]
EOHEZXX3Move request processing to structure - [4]
MOXHYSQ3Use more common error type\n\nMove to failure::Error after https://github.com/rust-lang-nursery/failure/pull/283 landed. - [*]
FVVPKFTLInitial commit
Change contents
- replacement in src/main.rs at line 46
type Future = Box<dyn Future<Item = Response<Self::ResBody>, Error = Self::Error> + Send + 'static>;type Future =Box<dyn Future<Item = Response<Self::ResBody>, Error = Self::Error> + Send + 'static>; - replacement in src/main.rs at line 67
.map_err(|e| Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>),.map_err(|e| {Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>}), - edit in src/main.rs at line 74
let cmd_send = self.cmd_send.clone(); - replacement in src/main.rs at line 76
/*req.into_body().map_err(|e| Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>).fold(String::new(), |acc, ch| {req.into_body().map_err(|e| {Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>}).fold(String::new(), |mut acc, ch| { - replacement in src/main.rs at line 86
.and_then(|msg: String| {*/self.cmd_send.and_then(move |_msg: String| {cmd_send - replacement in src/main.rs at line 107
Box::new(e) as Box<dyn std::error::Error + Sync + Send + 'static>Box::new(e)as Box<dyn std::error::Error + Sync + Send + 'static> - replacement in src/main.rs at line 110
// }),}),