[][src]Struct solana_ws::Response

pub struct Response { /* fields omitted */ }

The handshake response.

Methods

impl Response
[src]

Construct a generic HTTP response with a body.

Get the response body.

Edit the value of the first instance of an HTTP header.

Access the request headers.

Edit the request headers.

Get the HTTP status code.

Set the HTTP status code.

Get the HTTP status reason.

Set the HTTP status reason.

Get the hashed WebSocket key.

Get the protocol that the server has decided to use.

Set the protocol that the server has decided to use.

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

Add an accepted extension to this response. This may result in duplicate extensions listed.

Remove an accepted extension from this response. This will remove all configurations of the extension.

Attempt to parse an HTTP response from a buffer. If the buffer does not contain a complete response, thiw will return Ok(None).

Construct a new WebSocket handshake HTTP response from a request. This will create a response that ignores protocols and extensions. Edit this response to accept a protocol and extensions as necessary.

Write a response out to a buffer

Trait Implementations

impl Debug for Response
[src]

impl Display for Response
[src]

Auto Trait Implementations

impl Send for Response

impl Sync for Response

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]