Struct ntex::ws::WsClient [−][src]
pub struct WsClient<F, T> { /* fields omitted */ }
Expand description
WebSocket
client builder
Implementations
Create new websocket client builder
pub fn set_header<K, V>(&self, key: K, value: V) -> Result<(), HttpError> where
HeaderName: TryFrom<K>,
HeaderValue: TryFrom<V>,
<HeaderName as TryFrom<K>>::Error: Into<HttpError>,
<HeaderValue as TryFrom<V>>::Error: Into<HttpError>,
pub fn set_header<K, V>(&self, key: K, value: V) -> Result<(), HttpError> where
HeaderName: TryFrom<K>,
HeaderValue: TryFrom<V>,
<HeaderName as TryFrom<K>>::Error: Into<HttpError>,
<HeaderValue as TryFrom<V>>::Error: Into<HttpError>,
Insert a header, replaces existing header.
Set HTTP basic authorization header
Complete request construction and connect to a websockets server.
Trait Implementations
Auto Trait Implementations
impl<F, T> !RefUnwindSafe for WsClient<F, T>
impl<F, T> !UnwindSafe for WsClient<F, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more