Struct ws::Response [] [src]

pub struct Response {
    // some fields omitted
}

The handshake response.

Methods

impl Response
[src]

fn status(&self) -> Result<u16>

Get the status of the response

fn key(&self) -> Result<&[u8]>

Get the hashed WebSocket key

fn protocol(&self) -> Result<Option<&str>>

Get the protocol that the server has decided to use

fn extensions(&self) -> Result<Vec<&str>>

Get the extensions that the server has decided to use. If these are unacceptable, it is appropriate to send an Extension close code

Trait Implementations

impl Debug for Response
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for Response
[src]

fn default() -> Response

Returns the "default value" for a type. Read more