Function esp_idf_svc::sys::httpd_req_async_handler_begin

source ยท
pub unsafe extern "C" fn httpd_req_async_handler_begin(
    r: *mut httpd_req,
    out: *mut *mut httpd_req,
) -> i32
Expand description

@brief Start an asynchronous request. This function can be called in a request handler to get a request copy that can be used on a async thread.

@note

  • This function is necessary in order to handle multiple requests simultaneously. See examples/async_requests for example usage.
  • You must call httpd_req_async_handler_complete() when you are done with the request.

@param[in] r The request to create an async copy of @param[out] out A newly allocated request which can be used on an async thread

@return

  • ESP_OK : async request object created