hyper::ffi

Function hyper_headers_set

Source
#[no_mangle]
pub extern "C" fn hyper_headers_set(
    headers: *mut hyper_headers,
    name: *const u8,
    name_len: usize,
    value: *const u8,
    value_len: usize,
) -> hyper_code
Available on crate feature ffi and hyper_unstable_ffi only.
Expand description

Sets the header with the provided name to the provided value.

This overwrites any previous value set for the header.