Struct tk_http::client::Error
[−]
pub struct Error(_);
HTTP client error
Methods
impl Error[src]
pub fn custom<E: Into<Box<Error + Send + Sync>>>(err: E) -> Error[src]
Create an error instance wrapping custom error
pub fn is_graceful(&self) -> bool[src]
Tries to catch all the conditions where this isn't error
Currently catches these conditions:
- Connection timed out while being on keep-alive (no inprogress requests)
- Connection is closed after
Connection: closeheader
More conditions may be added in future. This should be commonly used to skip logging of useless errors.
Trait Implementations
impl Debug for Error[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more