Struct soketto::handshake::http::Server

source ·
pub struct Server { /* private fields */ }
Expand description

Websocket handshake server. This is similar to handshake::Server, but it is focused on performing the WebSocket handshake using a provided http::Request, as opposed to decoding the request internally.

Implementations§

Create a new server handshake.

Override the buffer to use for request/response handling.

Extract the buffer.

Add an extension the server supports.

Get back all extensions.

Attempt to interpret the provided http::Request as a WebSocket Upgrade request. If successful, this returns an http::Response that should be returned to the client to complete the handshake.

Turn this handshake into a connection::Builder.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.