Function tungstenite::handshake::server::create_response_with_body[][src]

pub fn create_response_with_body<T>(
    request: &HttpRequest<T>,
    generate_body: impl FnOnce() -> T
) -> Result<HttpResponse<T>>

Create a response for the request with a custom body.