Module http

Module http 

Source
Expand description

A helper module that supports HTTP

Structs§

AltairConfigOptionsaltair
Altair config options
AltairInitialEnvironmentStatealtair
Altair initial environment state
AltairInitialEnvironmentsaltair
Altair initial environments setup
AltairSettingsStatealtair
Altair application settings state
AltairSourcealtair
A builder for constructing an Altair HTML page.
AltairWindowOptionsaltair
Altair window options
GraphQLPlaygroundConfigplayground
Config for GraphQL Playground
GraphiQLPlugingraphiql
GraphiQLSourcegraphiql
A builder for constructing a GraphiQL (v2) HTML page.
MultipartOptions
Options for receive_multipart.
WebSocket
A GraphQL connection over websocket.

Enums§

AltairAuthorizationProviderInputaltair
Altair authorization provider input
AltairHttpVerbaltair
Altair supported HTTP verbs
AltairSettingsLanguagealtair
Altair supported languages
ClientMessage
A websocket message received from the client
Credentialsgraphiql
Indicates whether the user agent should send or receive user credentials (cookies, basic http auth, etc.) from the other domain in the case of cross-origin requests.
WebSocketProtocols
Specification of which GraphQL Over WebSockets protocol is being utilized
WsMessage
An enum representing the various forms of a WebSocket message.

Constants§

ALL_WEBSOCKET_PROTOCOLS
All known protocols based on WebSocket.

Functions§

create_multipart_mixed_stream
Create a stream for multipart/mixed responses.
default_on_connection_init
Default connection initializer function.
default_on_ping
Default ping handler function.
graphiql_plugin_explorergraphiql
Generate simple explorer plugin for GraphiQL (v2)
graphiql_sourcegraphiql
Generate the page for GraphIQL
is_accept_multipart_mixed
Check accept is multipart-mixed
parse_query_string
Parse a GraphQL request from a query string.
playground_sourceplayground
Generate the page for GraphQL Playground
receive_batch_body
Receive a GraphQL request from a content type and body.
receive_batch_cborcbor
Receive a GraphQL batch request from a body as CBOR
receive_batch_json
Receive a GraphQL batch request from a body as JSON.
receive_body
Receive a GraphQL request from a content type and body.
receive_cborcbor
Receive a GraphQL request from a body as CBOR.
receive_json
Receive a GraphQL request from a body as JSON.

Type Aliases§

DefaultOnConnInitType
Default connection initializer type.
DefaultOnPingType
Default ping handler type.