Function hyper::ffi::hyper_request_new

source ·
#[no_mangle]
pub extern "C" fn hyper_request_new() -> *mut hyper_request
Available on crate feature ffi and hyper_unstable_ffi only.
Expand description

Construct a new HTTP request.

The default request has an empty body. To send a body, call hyper_request_set_body.

To avoid a memory leak, the request must eventually be consumed by hyper_request_free or hyper_clientconn_send.