pub struct HttpCodec { /* private fields */ }
Expand description
Codec that parses HTTP responses.
Implementations§
Trait Implementations§
Source§impl Codec for HttpCodec
impl Codec for HttpCodec
Source§type Out = HttpRequest
type Out = HttpRequest
👎Deprecated: moved to the
tokio-io
crateThe type of frames to be encoded.
Source§fn decode(&mut self, buf: &mut EasyBuf) -> Result<Option<HttpResponse>, Error>
fn decode(&mut self, buf: &mut EasyBuf) -> Result<Option<HttpResponse>, Error>
👎Deprecated: moved to the
tokio-io
crateAttempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for HttpCodec
impl RefUnwindSafe for HttpCodec
impl Send for HttpCodec
impl Sync for HttpCodec
impl Unpin for HttpCodec
impl UnwindSafe for HttpCodec
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