Request
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1980
The Request interface of the Fetch API 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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1878
Inherited from
Section titled “Inherited from”bodyUsed
Section titled “bodyUsed”
readonlybodyUsed:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1880
Inherited from
Section titled “Inherited from”
readonlyoptionalcf:Cf
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2033
fetcher
Section titled “fetcher”
readonlyfetcher:null| {connect:Socket;fetch:Promise<Response>; }
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2026
headers
Section titled “headers”
readonlyheaders:Headers
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2019
The headers read-only property of the with the request.
integrity
Section titled “integrity”
readonlyintegrity:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2039
The integrity read-only property of the Request interface contains the subresource integrity value of the request.
keepalive
Section titled “keepalive”
readonlykeepalive:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2045
The keepalive read-only property of the Request interface contains the request’s keepalive setting (true or false), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
method
Section titled “method”
readonlymethod:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2007
The method read-only property of the POST, etc.) A String indicating the method of the request.
redirect
Section titled “redirect”
readonlyredirect:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2025
The redirect read-only property of the Request interface contains the mode for how redirects are handled.
signal
Section titled “signal”
readonlysignal:AbortSignal
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2032
The read-only signal property of the Request interface returns the AbortSignal associated with the request.
readonlyurl:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2013
The url read-only property of the Request interface contains the URL of the request.
Methods
Section titled “Methods”arrayBuffer()
Section titled “arrayBuffer()”arrayBuffer():
Promise<ArrayBuffer>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1882
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1892
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1884
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2001
The clone() method of the Request interface creates a copy of the current Request object.
Returns
Section titled “Returns”Request<CfHostMetadata, Cf>
formData()
Section titled “formData()”formData():
Promise<FormData>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1890
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1888
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1886
Returns
Section titled “Returns”Promise<string>