Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • UriOptions

Index

Properties

Optional allowQuerySquareBrackets

0.0.46 provide
allowQuerySquareBrackets: boolean

Allows unencoded square brackets inside the query string. This is NOT RFC 3986 compliant but query strings like abc[]=123&abc[]=456 are very common these days.

default

false

Optional allowRelative

0.0.46 provide
allowRelative: boolean

Allow relative URIs.

default

false

Optional domain

0.0.46 provide

Validate the domain component using the options specified in string.domain().

Optional relativeOnly

0.0.46 provide
relativeOnly: boolean

Restrict only relative URIs.

default

false

Optional scheme

0.0.46 provide
scheme: string | RegExp | (string | RegExp)[]

Specifies one or more acceptable Schemes, should only include the scheme name. Can be an Array or String (strings are automatically escaped for use in a Regular Expression).