Available on crate feature
async-graphql only.Expand description
GraphQL support (request extractors, responses, and subscriptions). Async-GraphQL integration for Tako: extractors, responses, and subscriptions.
- GraphQLRequest / GraphQLBatchRequest extractors
- GraphQLResponse / GraphQLBatchResponse responders
- GraphQLSubscription responder for WebSocket subscriptions
Enable via the async-graphql cargo feature.
Re-exports§
Structs§
- GraphQL
Batch Request - Batch GraphQL request extractor.
- GraphQL
Batch Response - Batch GraphQL response wrapper.
- GraphQL
Options - Per-request or global options for GraphQL extraction.
- GraphQL
Protocol - Extracted WebSocket protocol for GraphQL subscriptions.
- GraphQL
Protocol Rejection - GraphQL
Request - Single GraphQL request extractor.
- GraphQL
Response - Single GraphQL response wrapper.
- GraphQL
Subscription - GraphQL WebSocket subscription responder (GraphQL over WebSocket).
- GraphQL
WebSocket - A generic GraphQL WebSocket driver using an arbitrary Sink/Stream of tungstenite Messages.
Enums§
- GraphQL
Error - Errors that can occur while parsing GraphQL HTTP requests.
Functions§
- attach_
graphql_ options - Helper to receive a single GraphQL request with custom MultipartOptions. Attach per-request GraphQL options into request extensions.
- receive_
graphql - receive_
graphql_ batch - Helper to receive a batch GraphQL request with custom MultipartOptions.
- set_
global_ graphql_ options - Set global GraphQL options via Tako’s global state.