Skip to content

URLSearchParams

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2671

new URLSearchParams(init?): URLSearchParams

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2672

string | URLSearchParams | Record<string, string> | [string, string][]

URLSearchParams

get size(): number

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2680

number

[iterator](): IterableIterator<[string, string]>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2736

IterableIterator<[string, string]>


append(name, value): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2686

Appends a specified key/value pair as a new search parameter.

MDN Reference

string

string

void


delete(name): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2692

Deletes the given search parameter, and its associated value, from the list of all search parameters.

MDN Reference

string

void


entries(): IterableIterator<[string, string]>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2720

IterableIterator<[string, string]>


forEach<This>(callback, thisArg?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2725

This = unknown

(this, value, key, parent) => void

This

void


get(name): null | string

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2698

Returns the first value associated to the given search parameter.

MDN Reference

string

null | string


getAll(name): string[]

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2704

Returns all the values association with a given search parameter.

MDN Reference

string

string[]


has(name): boolean

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2710

Returns a Boolean indicating if such a search parameter exists.

MDN Reference

string

boolean


keys(): IterableIterator<string>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2722

IterableIterator<string>


set(name, value): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2716

Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.

MDN Reference

string

string

void


sort(): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2718

void


toString(): string

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2735

string


values(): IterableIterator<string>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2724

IterableIterator<string>