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

Receive a GraphQL request from a content type and body.

Examples found in repository?
src/http/mod.rs (line 68)
63
64
65
66
67
68
69
70
71
pub async fn receive_body(
    content_type: Option<impl AsRef<str>>,
    body: impl AsyncRead + Send,
    opts: MultipartOptions,
) -> Result<Request, ParseRequestError> {
    receive_batch_body(content_type, body, opts)
        .await?
        .into_single()
}