Struct twist::server::HandshakeResponseFrame
[−]
[src]
pub struct HandshakeResponseFrame { /* fields omitted */ }
Data needed to construct a server response to a client request.
Methods
impl Frame
[src]
fn code(&self) -> u16
Get the code
value.
fn set_code(&mut self, code: u16) -> &mut Frame
Set the code
value {
fn reason(&self) -> &str
Get the reason
value.
fn set_reason(&mut self, reason: &str) -> &mut Frame
Set the reason
value {
fn upgrade(&self) -> String
Get the upgrade
value.
fn set_upgrade(&mut self, upgrade: Option<String>) -> &mut Frame
Set the upgrade
value.
fn conn(&self) -> String
Get the conn
value.
fn set_conn(&mut self, conn: Option<String>) -> &mut Frame
Set the conn
value.
fn ws_key(&self) -> &str
Get the ws_key
value.
fn set_ws_key(&mut self, ws_key: String) -> &mut Frame
Set the ws_key
value.
fn protocol(&self) -> String
Get the protocol
value.
fn set_protocol(&mut self, protocol: Option<String>) -> &mut Frame
Set the protocol
value.
fn extensions(&self) -> String
Get the extensions
value.
fn set_extensions(&mut self, extensions: Option<String>) -> &mut Frame
Set the extensions
value.
fn others(&self) -> &HashMap<String, String>
Get the others
value.
fn set_others(&mut self, others: HashMap<String, String>) -> &mut Frame
Set the others
value.
fn accept_val(&self) -> Result<String>
Generate the Sec-WebSocket-Accept
value.
Trait Implementations
impl Clone for Frame
[src]
fn clone(&self) -> Frame
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more