Skip to main content

build_error_response

Function build_error_response 

Source
pub fn build_error_response(
    status: u16,
    reason: &str,
    extra_headers: &[(String, String)],
) -> Vec<u8> ⓘ
Expand description

Build a plain HTTP error response used to refuse an upgrade.