pub enum HttpError {
BufTooShort,
HeaderName,
HeaderValue,
NewLine,
Status,
Token,
Version,
Method,
Partial,
InvalidStatusCode,
SchemeTooLong,
}
Variants§
BufTooShort
数据太小不足以支持读
HeaderName
Invalid byte in header name.
HeaderValue
Invalid byte in header value.
NewLine
Invalid byte in new line.
Status
Invalid byte in Response status.
Token
Invalid byte where token is required.
Version
Invalid byte in HTTP version.
Method
无效的method方法
Partial
Partial
InvalidStatusCode
StatusCode
SchemeTooLong
Scheme 太长了
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl UnwindSafe for HttpError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more