Struct tokio_tungstenite::Request [] [src]

pub struct Request<'a> {
    pub url: Url,
    pub headers: Vec<(&'a str, &'a str)>,
}

A WebSocket request

Fields

URL of the request.

Extra headers, if any.

Methods

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

Constructs a new WebSocket request with a URL or URL string

Adds a WebSocket protocol to the request

Adds a custom header to the request

Trait Implementations

impl<'a, U: Into<Url>> From<U> for Request<'a>
[src]

Performs the conversion.