graphql-tools-monorepo / executors/http/src / HTTPExecutorOptions
Interface: HTTPExecutorOptions
executors/http/src.HTTPExecutorOptions
Hierarchy
-
HTTPExecutorOptions
Table of contents
Properties
- File
- FormData
- credentials
- disposable
- endpoint
- fetch
- headers
- method
- retry
- timeout
- useGETForQueries
Properties
File
• Optional File: Object
WHATWG compatible File implementation
See
https://developer.mozilla.org/en-US/docs/Web/API/File
Call signature
• new File(fileBits, fileName, options?): File
Parameters
| Name | Type |
|---|---|
fileBits | BlobPart[] |
fileName | string |
options? | FilePropertyBag |
Returns
File
Type declaration
| Name | Type |
|---|---|
prototype | File |
Defined in
packages/executors/http/src/index.ts:80
FormData
• Optional FormData: Object
WHATWG compatible FormData implementation
See
https://developer.mozilla.org/en-US/docs/Web/API/FormData
Call signature
• new FormData(form?, submitter?): FormData
Parameters
| Name | Type |
|---|---|
form? | HTMLFormElement |
submitter? | null | HTMLElement |
Returns
FormData
Type declaration
| Name | Type |
|---|---|
prototype | FormData |
Defined in
packages/executors/http/src/index.ts:85
credentials
• Optional credentials: RequestCredentials
Request Credentials (default: ‘same-origin’)
See
https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
Defined in
packages/executors/http/src/index.ts:71
disposable
• Optional disposable: boolean
Enable Explicit Resource Management
Default
falseDefined in
packages/executors/http/src/index.ts:94
endpoint
• Optional endpoint: string
Defined in
packages/executors/http/src/index.ts:49
fetch
• Optional fetch: FetchFn
Defined in
packages/executors/http/src/index.ts:50
headers
• Optional headers: HeadersConfig | (executorRequest?: ExecutionRequest<any, any, any, Record<string, any>, any>) => HeadersConfig
Additional headers to include when querying the original schema
Defined in
packages/executors/http/src/index.ts:58
method
• Optional method: "GET" | "POST"
HTTP method to use when querying the original schema.
Defined in
packages/executors/http/src/index.ts:62
• Optional print: (doc: DocumentNode) => string
Print function for DocumentNode
Type declaration
▸ (doc): string
Parameters
| Name | Type |
|---|---|
doc | DocumentNode |
Returns
string
Defined in
packages/executors/http/src/index.ts:89
retry
• Optional retry: number
Retry attempts
Defined in
packages/executors/http/src/index.ts:75
timeout
• Optional timeout: number
Timeout in milliseconds
Defined in
packages/executors/http/src/index.ts:66
useGETForQueries
• Optional useGETForQueries: boolean
Whether to use the GET HTTP method for queries when querying the original schema