Function hyper::ffi::hyper_clientconn_send
source · #[no_mangle]
pub extern "C" fn hyper_clientconn_send(
conn: *mut hyper_clientconn,
req: *mut hyper_request
) -> *mut hyper_task
Available on crate feature
ffi
and hyper_unstable_ffi
only.Expand description
Creates a task to send a request on the client connection.
This consumes the request. You should not use or free the request afterwards.
Returns a task that needs to be polled until it is ready. When ready, the
task yields a hyper_response *
.
To avoid a memory leak, the task must eventually be consumed by
hyper_task_free
, or taken ownership of by hyper_executor_push
without subsequently being given back by hyper_executor_poll
.