1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

replace reqwest with actix::client

This commit is contained in:
Nikolay Kim
2018-02-19 13:18:18 -08:00
parent cb70d5ec3d
commit 548f4e4d62
12 changed files with 430 additions and 151 deletions

View File

@@ -21,11 +21,13 @@ pub struct HttpResponseParser {
decoder: Option<Decoder>,
}
#[derive(Debug)]
#[derive(Debug, Fail)]
pub enum HttpResponseParserError {
/// Server disconnected
#[fail(display="Server disconnected")]
Disconnect,
Payload,
Error(ParseError),
#[fail(display="{}", _0)]
Error(#[cause] ParseError),
}
impl HttpResponseParser {