Skip to content

URLSearchParams

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

The URLSearchParams interface defines utility methods to work with the query string of a URL.

MDN Reference

new URLSearchParams(init?): URLSearchParams

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

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

URLSearchParams

get size(): number

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

The size read-only property of the URLSearchParams interface indicates the total number of search parameter entries.

MDN Reference

number

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

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

IterableIterator<[string, string]>


append(name, value): void

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

The append() method of the URLSearchParams interface 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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3295

The delete() method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.

MDN Reference

string

void


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

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

IterableIterator<[string, string]>


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

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

This = unknown

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

This

void


get(name): null | string

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

The get() method of the URLSearchParams interface 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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3307

The getAll() method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.

MDN Reference

string

string[]


has(name): boolean

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

The has() method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.

MDN Reference

string

boolean


keys(): IterableIterator<string>

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

IterableIterator<string>


set(name, value): void

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

The set() method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.

MDN Reference

string

string

void


sort(): void

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

The URLSearchParams.sort() method sorts all key/value pairs contained in this object in place and returns undefined.

MDN Reference

void


toString(): string

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

string


values(): IterableIterator<string>

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

IterableIterator<string>