pub enum HttpReply {
Ok = 200,
Forbidden = 403,
ProxyAuthenticationRequired = 407,
BadGateway = 502,
GatewayTimeout = 504,
}Available on crate feature
http only.Expand description
HTTP proxy response status codes as defined in RFC 7231.
These status codes represent the standard HTTP responses for proxy operations:
- 200 OK: Connection established successfully
- 403 Forbidden: Access denied
- 407 Proxy Authentication Required: Authentication needed
- 502 Bad Gateway: Connection to target failed
- 504 Gateway Timeout: Connection to target timed out
Reference: https://datatracker.ietf.org/doc/html/rfc7231#section-6
Variants§
Trait Implementations§
impl Copy for HttpReply
impl Eq for HttpReply
impl StructuralPartialEq for HttpReply
Auto Trait Implementations§
impl Freeze for HttpReply
impl RefUnwindSafe for HttpReply
impl Send for HttpReply
impl Sync for HttpReply
impl Unpin for HttpReply
impl UnwindSafe for HttpReply
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