[−][src]Enum minreq::Error
Represents an error while sending, receiving, or parsing an HTTP response.
Variants
SerdeJsonError(Error)
Ran into a Serde error.
InvalidUtf8InBody(Utf8Error)
The response body contains invalid UTF-8, so the as_str()
conversion failed.
IoError(Error)
Ran into an IO problem while loading the response.
Couldn't parse the incoming chunk's length while receiving a
response with the header Transfer-Encoding: chunked
.
Couldn't parse the Content-Length
header's value as an
usize
.
The response was a redirection, but the Location
header is
missing.
The response redirections caused an infinite redirection loop.
Followed
max_redirections
redirections, won't follow any more.
The response contained invalid UTF-8 where it should be valid (eg. headers), so the response cannot interpreted correctly.
The provided url contained a domain that has non-ASCII characters, and could not be converted into punycode. It is probably not an actual domain.
Tried to send a secure request (ie. the url started with
https://
), but the crate's https
feature was not enabled,
and as such, a connection cannot be made.
The provided url contained a domain that has non-ASCII
characters, but it could not be converted into punycode
because the punycode
feature was not enabled.
The provided proxy information was not properly formatted.
Supported proxy format is [user:password@]host:port
.
The provided credentials were rejected by the proxy server.
The provided proxy credentials were malformed.
The provided credentials were rejected by the proxy server.
Other(&'static str)
This is a special error case, one that should never be
returned! Think of this as a cleaner alternative to calling
unreachable!()
inside the library. If you come across this,
please open an issue, and include the string inside this
error, as it can be used to locate the problem.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,