Request
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1655
This Fetch API interface represents a resource request.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”CfHostMetadata
Section titled “CfHostMetadata”CfHostMetadata = unknown
Cf = CfProperties<CfHostMetadata>
Properties
Section titled “Properties”
readonlybody:null|ReadableStream<any>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1585
Inherited from
Section titled “Inherited from”bodyUsed
Section titled “bodyUsed”
readonlybodyUsed:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1587
Inherited from
Section titled “Inherited from”
readonlyoptionalcf:Cf
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1704
fetcher
Section titled “fetcher”
readonlyfetcher:null| {connect:Socket;fetch:Promise<Response>; }
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1697
headers
Section titled “headers”
readonlyheaders:Headers
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1690
Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the “Host” header.
integrity
Section titled “integrity”
readonlyintegrity:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1710
Returns request’s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
keepalive
Section titled “keepalive”
readonlykeepalive:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1716
Returns a boolean indicating whether or not request can outlive the global in which it was created.
method
Section titled “method”
readonlymethod:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1678
Returns request’s HTTP method, which is “GET” by default.
redirect
Section titled “redirect”
readonlyredirect:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1696
Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
signal
Section titled “signal”
readonlysignal:AbortSignal
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1703
Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
readonlyurl:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1684
Returns the URL of request as a string.
Methods
Section titled “Methods”arrayBuffer()
Section titled “arrayBuffer()”arrayBuffer():
Promise<ArrayBuffer>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1589
Returns
Section titled “Returns”Promise<ArrayBuffer>
Inherited from
Section titled “Inherited from”blob()
Section titled “blob()”blob():
Promise<Blob>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1599
Returns
Section titled “Returns”Promise<Blob>
Inherited from
Section titled “Inherited from”bytes()
Section titled “bytes()”bytes():
Promise<Uint8Array<ArrayBufferLike>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1591
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”clone()
Section titled “clone()”clone():
Request<CfHostMetadata,Cf>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1672
Returns
Section titled “Returns”Request<CfHostMetadata, Cf>
formData()
Section titled “formData()”formData():
Promise<FormData>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1597
Returns
Section titled “Returns”Promise<FormData>
Inherited from
Section titled “Inherited from”json()
Section titled “json()”json<
T>():Promise<T>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1595
Type Parameters
Section titled “Type Parameters”T
Returns
Section titled “Returns”Promise<T>
Inherited from
Section titled “Inherited from”text()
Section titled “text()”text():
Promise<string>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1593
Returns
Section titled “Returns”Promise<string>