Module http

Module http 

Source
Expand description

A helper module that supports HTTP

Structs§

GraphiQLSourcegraphiql
A builder for constructing a GraphiQL (v2) HTML page.
MultipartOptions
Options for receive_multipart.
WebSocket
A GraphQL connection over websocket.

Enums§

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.
is_accept_multipart_mixed
Check accept is multipart-mixed
parse_query_string
Parse a GraphQL request from a query string.
receive_batch_body
Receive a GraphQL request from a content type and body.
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_json
Receive a GraphQL request from a body as JSON.

Type Aliases§

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