pub struct ConnectRequest {
pub dest: String,
pub conn_type: ConnectionType,
pub metadata: Vec<(String, String)>,
}Expand description
Parsed ConnectRequest. dest is a full URL on HTTP/Websocket
streams (e.g. https://abc.trycloudflare.com/path?q=1) and a
host:port on TCP streams.
Fields§
§dest: String§conn_type: ConnectionType§metadata: Vec<(String, String)>Free-form key/value map the edge attaches to the stream.
For HTTP requests this carries HttpMethod, HttpHost,
and one HttpHeader:<Name> entry per request header.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectRequest
impl Clone for ConnectRequest
Source§fn clone(&self) -> ConnectRequest
fn clone(&self) -> ConnectRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectRequest
impl RefUnwindSafe for ConnectRequest
impl Send for ConnectRequest
impl Sync for ConnectRequest
impl Unpin for ConnectRequest
impl UnsafeUnpin for ConnectRequest
impl UnwindSafe for ConnectRequest
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