Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / http / UriQueryString

Interface: UriQueryString

Defined in: http/Uri.ts:43

Read-only view over a URI's query string, returned by Uri.query().

Methods

all()

all(): Record<string, QueryValue>

Defined in: http/Uri.ts:45

All query parameters as a plain object.

Returns

Record<string, QueryValue>


get()

get(key): string | undefined

Defined in: http/Uri.ts:47

The first value for a key (or undefined).

Parameters

key

string

Returns

string | undefined


getAll()

getAll(key): string[]

Defined in: http/Uri.ts:49

Every value for a key as an array.

Parameters

key

string

Returns

string[]


has()

has(key): boolean

Defined in: http/Uri.ts:51

Whether a key is present.

Parameters

key

string

Returns

boolean


toString()

toString(): string

Defined in: http/Uri.ts:53

The encoded query string (without the leading ?).

Returns

string