Function hyper::ffi::hyper_response_headers_raw
source · [−]#[no_mangle]
pub extern "C" fn hyper_response_headers_raw(
resp: *const hyper_response
) -> *const hyper_buf
Expand description
Get a reference to the full raw headers of this response.
You must have enabled hyper_clientconn_options_headers_raw()
, or this
will return NULL.
The returned hyper_buf *
is just a reference, owned by the response.
You need to make a copy if you wish to use it after freeing the
response.
The buffer is not null-terminated, see the hyper_buf
functions for
getting the bytes and length.