pub fn new(http_version: Version, status_code: StatusCode) -> Response {
        return Response {
            status_line: StatusLine::new(http_version, status_code),
            headers: Headers::default(),
            body: None,
        };
    }
/// Creates a new HTTP `Response` with an empty body.
Creates a new HTTP `Response` with an empty body.
Creates a new HTTP ` Response ` with an empty body .
pub fn new(http_version: Version, status_code: StatusCode) -> Response {
        return Response {
            status_line: StatusLine::new(http_version, status_code),
            headers: Headers::default(),
            body: None,
        };
    }
pub fn new ( http_version : Version , status_code : StatusCode ) -> Response { return Response { status_line : StatusLine :: new ( http_version , status_code ) , headers : Headers :: default ( ) , body : None , } ; }
Creates a new HTTP `Response` with an empty body.
Creates a new HTTP ` Response ` with an empty body .
http_version
Version
status_code
StatusCode
http_version
Version
status_code
StatusCode