Skip to content

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.

MDN Reference

CfHostMetadata = unknown

Cf = CfProperties<CfHostMetadata>

readonly body: null | ReadableStream<any>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1878

Response.body


readonly bodyUsed: boolean

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1880

Body.bodyUsed


readonly optional cf: Cf

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2033


readonly fetcher: 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


readonly headers: 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.

MDN Reference


readonly integrity: 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.

MDN Reference


readonly keepalive: 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.

MDN Reference


readonly method: 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.

MDN Reference


readonly redirect: 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.

MDN Reference


readonly signal: 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.

MDN Reference


readonly url: 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.

MDN Reference

arrayBuffer(): Promise<ArrayBuffer>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1882

Promise<ArrayBuffer>

Body.arrayBuffer


blob(): Promise<Blob>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1892

Promise<Blob>

Body.blob


bytes(): Promise<Uint8Array<ArrayBufferLike>>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1884

Promise<Uint8Array<ArrayBufferLike>>

Body.bytes


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.

MDN Reference

Request<CfHostMetadata, Cf>


formData(): Promise<FormData>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1890

Promise<FormData>

Body.formData


json<T>(): Promise<T>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1888

T

Promise<T>

Body.json


text(): Promise<string>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1886

Promise<string>

Body.text