evhttp_cancel_request

Cancels a pending HTTP request.

Cancels an ongoing HTTP request. The callback associated with this request is not executed and the request object is freed. If the request is currently being processed, e.g. it is ongoing, the corresponding evhttp_connection object is going to get reset.

A request cannot be canceled if its callback has executed already. A request may be canceled reentrantly from its chunked callback.

@param req the evhttp_request to cancel; req becomes invalid after this call.

extern (C) nothrow
void
evhttp_cancel_request

Meta