Skip to main content

request_line_with_version

Function request_line_with_version 

Source
pub fn request_line_with_version(
    method: &str,
    path: &str,
    version: &str,
) -> String
Expand description

Build a request line using a specific HTTP version string. Some parsers honor HTTP/0.9 (no headers, no status line on response). Some accept HTTP/2.0 as a version on the wire even when the transport is HTTP/1.1.