pub(crate) enum Client {}Implementations§
Source§impl Client
impl Client
Sourcefn decoder(
inc: &MessageHead<StatusCode>,
method: &mut Option<Method>,
) -> Result<Option<(DecodedLength, bool)>, Parse>
fn decoder( inc: &MessageHead<StatusCode>, method: &mut Option<Method>, ) -> Result<Option<(DecodedLength, bool)>, Parse>
Returns Some(length, wants_upgrade) if successful.
Returns None if this message head should be skipped (like a 100 status).
fn set_length( head: &mut MessageHead<RequestLine>, body: Option<BodyLength>, ) -> Encoder
fn obs_fold_line(all: &mut [u8], idx: &mut HeaderIndices)
Trait Implementations§
Source§impl Http1Transaction for Client
Available on crate feature client only.
impl Http1Transaction for Client
Available on crate feature
client only.type Incoming = StatusCode
type Outgoing = RequestLine
fn parse( buf: &mut BytesMut, ctx: ParseContext<'_>, ) -> Result<Option<ParsedMessage<StatusCode>>, Parse>
fn encode(msg: Encode<'_, Self::Outgoing>, dst: &mut Vec<u8>) -> Result<Encoder>
fn on_error(_err: &Error) -> Option<MessageHead<Self::Outgoing>>
fn is_client() -> bool
fn is_server() -> bool
fn should_error_on_parse_eof() -> bool
fn should_read_first() -> bool
fn update_date()
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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