Function hyper::ffi::hyper_request_set_version[][src]

#[no_mangle]
pub extern "C" fn hyper_request_set_version(
    req: *mut hyper_request,
    version: c_int
) -> hyper_code
Expand description

Set the preferred HTTP version of the request.

The version value should be one of the HYPER_HTTP_VERSION_ constants.

Note that this won’t change the major HTTP version of the connection, since that is determined at the handshake step.