Function finchers_juniper::request::graphql_request[][src]

pub fn graphql_request() -> GraphQLRequestEndpoint

Create an endpoint which parses a GraphQL request from the client.

This endpoint validates if the HTTP method is GET or POST and if the iterator over remaining segments is empty, and skips if the request is not acceptable. If the validation is successed, it will return a Future which behaves as follows: