Function hyper::ffi::hyper_request_set_uri_parts [−][src]
#[no_mangle]
pub extern "C" fn hyper_request_set_uri_parts(
req: *mut hyper_request,
scheme: *const u8,
scheme_len: size_t,
authority: *const u8,
authority_len: size_t,
path_and_query: *const u8,
path_and_query_len: size_t
) -> hyper_code
Expand description
Set the URI of the request with separate scheme, authority, and path/query strings.
Each of scheme
, authority
, and path_and_query
should either be
null, to skip providing a component, or point to a UTF-8 encoded
string. If any string pointer argument is non-null, its corresponding
len
parameter must be set to the string’s length.