pub enum Response<'a> {
Accept {
key: WebSocketKey,
protocol: Option<&'a str>,
},
Reject {
status_code: u16,
},
}
Expand description
Handshake response the server sends back to the client.
pub enum Response<'a> {
Accept {
key: WebSocketKey,
protocol: Option<&'a str>,
},
Reject {
status_code: u16,
},
}
Handshake response the server sends back to the client.