Skip to main content

dispatch_async

Function dispatch_async 

Source
pub async fn dispatch_async(
    kernel: &AsyncHttpKernel,
    request: &HttpRequest,
    body: impl AsRef<[u8]>,
) -> HttpResponse
Expand description

Converts the Actix request, awaits async kernel, and returns an Actix response.

Actix HttpRequest is !Send; clippy nursery flags the resulting future.