pub struct ConnectRequest<'a> {
pub target: &'a ConnectTarget,
pub proxy_authorization: Option<&'a str>,
pub extra_headers: &'a [(String, Vec<u8>)],
pub max_head_bytes: usize,
}Expand description
A CONNECT request to serialize.
proxy_authorization holds a pre-encoded header value such as
Basic <base64> (see basic_auth_value). extra_headers holds
proxy-only headers as (name, raw value) pairs; values are preserved
byte-for-byte where HTTP permits (including obs-text 0x80..=0xFF).
max_head_bytes bounds the serialized head before any write.
Fields§
§target: &'a ConnectTargetCONNECT destination; also sources the generated Host value.
Optional pre-encoded Proxy-Authorization value (without the name).
extra_headers: &'a [(String, Vec<u8>)]Proxy-only headers as (name, raw value) pairs.
max_head_bytes: usizeMaximum serialized head size in bytes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ConnectRequest<'a>
impl<'a> RefUnwindSafe for ConnectRequest<'a>
impl<'a> Send for ConnectRequest<'a>
impl<'a> Sync for ConnectRequest<'a>
impl<'a> Unpin for ConnectRequest<'a>
impl<'a> UnsafeUnpin for ConnectRequest<'a>
impl<'a> UnwindSafe for ConnectRequest<'a>
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