graphql-http / use/fetch / FetchAPI
use/fetch.FetchAPI
The necessary API from the fetch environment for the handler.
• ReadableStream: (underlyingSource
: UnderlyingByteSource
, strategy?
: {}) => ReadableStream
<Uint8Array
><R>(underlyingSource
: UnderlyingDefaultSource
<R
>, strategy?
: QueuingStrategy
<R
>) => ReadableStream
<R
><R>(underlyingSource?
: UnderlyingSource
<R
>, strategy?
: QueuingStrategy
<R
>) => ReadableStream
<R
>
• new ReadableStream(underlyingSource
, strategy?
): ReadableStream
<Uint8Array
>
Name | Type |
---|---|
underlyingSource |
UnderlyingByteSource |
strategy? |
Object |
ReadableStream
<Uint8Array
>
• new ReadableStream<R
>(underlyingSource
, strategy?
): ReadableStream
<R
>
Name | Type |
---|---|
R |
any |
Name | Type |
---|---|
underlyingSource |
UnderlyingDefaultSource <R > |
strategy? |
QueuingStrategy <R > |
ReadableStream
<R
>
• new ReadableStream<R
>(underlyingSource?
, strategy?
): ReadableStream
<R
>
Name | Type |
---|---|
R |
any |
Name | Type |
---|---|
underlyingSource? |
UnderlyingSource <R > |
strategy? |
QueuingStrategy <R > |
ReadableStream
<R
>
• Response: (body?
: null
| BodyInit
, init?
: ResponseInit
) => Response
• new Response(body?
, init?
): Response
Name | Type |
---|---|
body? |
null | BodyInit |
init? |
ResponseInit |
Response
• TextEncoder: () => TextEncoder
• new TextEncoder(): TextEncoder
TextEncoder