Skip to content

Documentation / @warp-drive/utilities / handlers / assertInvalidUrlLength

Function: assertInvalidUrlLength()

ts
function assertInvalidUrlLength(url): void;

Defined in: utilities/src/-private/handlers/utils.ts:68

This assertion takes a URL and throws an error if the URL is longer than the maximum URL length.

See also MAX_URL_LENGTH

Parameters

url

undefined | string

Returns

void

Released under the MIT License.