hyper_request_set_version

Function hyper_request_set_version 

Source
#[unsafe(no_mangle)]
pub extern "C" fn hyper_request_set_version( req: *mut hyper_request, version: c_int, ) -> hyper_code
Available on crate feature ffi and hyper_unstable_ffi only.
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.