async_graphql::http

Function receive_body

source
pub async fn receive_body(
    content_type: Option<impl AsRef<str>>,
    body: impl AsyncRead + Send,
    opts: MultipartOptions,
) -> Result<Request, ParseRequestError>
Expand description

Receive a GraphQL request from a content type and body.