Trait tungstenite::client::IntoClientRequest[][src]

pub trait IntoClientRequest {
    fn into_client_request(self) -> Result<Request>;
}

Trait for converting various types into HTTP requests used for a client connection.

This trait is implemented by default for string slices, strings, url::Url, http::Uri and http::Request<()>.

Required methods

fn into_client_request(self) -> Result<Request>[src]

Convert into a Request that can be used for a client connection.

Loading content...

Implementations on Foreign Types

impl<'a> IntoClientRequest for &'a str[src]

impl<'a> IntoClientRequest for &'a String[src]

impl IntoClientRequest for String[src]

impl<'a> IntoClientRequest for &'a Uri[src]

impl IntoClientRequest for Uri[src]

impl<'a> IntoClientRequest for &'a Url[src]

impl IntoClientRequest for Url[src]

impl<'h, 'b> IntoClientRequest for Request<'h, 'b>[src]

Loading content...

Implementors

impl IntoClientRequest for tungstenite::handshake::client::Request[src]

Loading content...