tungstenite::handshake::server

Function create_response_with_body

source
pub fn create_response_with_body<T>(
    request: &Request<T>,
    generate_body: impl FnOnce() -> T,
) -> Result<Response<T>>
Expand description

Create a response for the request with a custom body.