Function hyper::ffi::hyper_request_set_body[][src]

#[no_mangle]
pub extern "C" fn hyper_request_set_body(
    req: *mut hyper_request,
    body: *mut hyper_body
) -> hyper_code
Expand description

Set the body of the request.

The default is an empty body.

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