pub struct ProxyRequest {
pub method: String,
pub path: String,
pub headers: Vec<(String, String)>,
pub websocket: bool,
}Expand description
Request metadata sent to the device ahead of the body.
Sent once per connection rather than per frame: this is a header, not a multiplexing envelope.
Fields§
§method: StringHTTP method.
path: StringPath and query, relative to the device’s local server.
headers: Vec<(String, String)>Headers to replay, including Authorization — which the relay forwards
verbatim and never inspects.
websocket: boolWhether this is a WebSocket upgrade.
Carried as a field rather than as Upgrade/Connection headers: those
are hop-by-hop and describe the client’s connection to the relay, so
replaying them would contradict the filtering everything else goes
through. The device performs its own local handshake instead.
Trait Implementations§
Source§impl Clone for ProxyRequest
impl Clone for ProxyRequest
Source§fn clone(&self) -> ProxyRequest
fn clone(&self) -> ProxyRequest
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 moreSource§impl Debug for ProxyRequest
impl Debug for ProxyRequest
Source§impl<'de> Deserialize<'de> for ProxyRequest
impl<'de> Deserialize<'de> for ProxyRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProxyRequest
Source§impl PartialEq for ProxyRequest
impl PartialEq for ProxyRequest
Source§impl Serialize for ProxyRequest
impl Serialize for ProxyRequest
impl StructuralPartialEq for ProxyRequest
Auto Trait Implementations§
impl Freeze for ProxyRequest
impl RefUnwindSafe for ProxyRequest
impl Send for ProxyRequest
impl Sync for ProxyRequest
impl Unpin for ProxyRequest
impl UnsafeUnpin for ProxyRequest
impl UnwindSafe for ProxyRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.