Function async_graphql::http::is_accept_multipart_mixed

source ·
pub fn is_accept_multipart_mixed(accept: &str) -> bool
Expand description

Check accept is multipart-mixed

§Example header

Accept: multipart/mixed; boundary="graphql"; subscriptionSpec="1.0"

the value for boundary should always be graphql, and the value for subscriptionSpec should always be 1.0.

Reference: https://www.apollographql.com/docs/router/executing-operations/subscription-multipart-protocol/