Struct tungstenite::handshake::client::Request [] [src]

pub struct Request<'t> {
    pub url: Url,
    pub extra_headers: Option<Vec<(Cow<'t, str>, Cow<'t, str>)>>,
}

Client request.

Fields

ws:// or wss:// URL to connect to.

Extra HTTP headers to append to the request.

Methods

impl<'t> Request<'t>
[src]

[src]

Adds a WebSocket protocol to the request.

[src]

Adds a custom header to the request.

Trait Implementations

impl From<Url> for Request<'static>
[src]

[src]

Performs the conversion.