Documentation ¶
Index ¶
Constants ¶
View Source
const HeaderBatch = "X-Batch"
Variables ¶
This section is empty.
Functions ¶
func IsBatchingRawQuery ¶
func SplitQuery ¶
Types ¶
type GraphqlRawParamsCollection ¶
func (GraphqlRawParamsCollection) Len ¶
func (c GraphqlRawParamsCollection) Len() int
func (*GraphqlRawParamsCollection) UnmarshalJSON ¶
func (c *GraphqlRawParamsCollection) UnmarshalJSON(b []byte) error
UnmarshalJSON could unmarshal slice or single query
type POST ¶
type POST struct { transport.POST // Map of all headers that are added to graphql response. If not // set, only one header: Content-Type: application/json will be set. ResponseHeaders map[string][]string }
POST implements the POST side of the default HTTP transport defined in https://github.com/APIs-guru/graphql-over-http#post
func (POST) Do ¶
func (h POST) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.