Struct parity_ws::Response [−][src]
pub struct Response { /* fields omitted */ }
Expand description
The handshake response.
Implementations
Construct a generic HTTP response with a body.
Edit the value of the first instance of an HTTP header.
Set the HTTP status code.
Set the HTTP status reason.
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Response
impl UnwindSafe for Response