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
Trait Implementations§
source§impl Http1Transaction for Client
impl Http1Transaction for Client
type Incoming = StatusCode
type Outgoing = RequestLine
const LOG: &'static str = "{role=client}"
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 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