Function hyper::ffi::hyper_request_set_body

source ·
#[no_mangle]
pub extern "C" fn hyper_request_set_body(
    req: *mut hyper_request,
    body: *mut hyper_body
) -> hyper_code
Available on crate feature ffi and hyper_unstable_ffi only.
Expand description

Set the body of the request.

You can get a hyper_body by calling hyper_body_new.

This takes ownership of the hyper_body *, you must not use it or free it after setting it on the request.