Skip to main content

write_head

Function write_head 

Source
pub async fn write_head<S: AsyncWrite + Unpin>(
    s: &mut S,
    status: u16,
    content_type: Option<&str>,
) -> Result<(), ProxyError>
Expand description

Write a status line and headers; the body that follows is delimited by closing the connection.