Skip to main content

Interface: Selector

@divine/uri.Selector

A set of rules that must all match a given URL or authentication parameters for it to be valid or active.

Properties

authRealm

Optional authRealm: string | RegExp

A filter for the required authentication realm. The matching score is 1.

Defined in

uri/src/selectors.ts:11


authScheme

Optional authScheme: string | RegExp

A filter for the required authentication scheme. The matching score is 2.

Defined in

uri/src/selectors.ts:14


hostname

Optional hostname: string | RegExp

A filter for the required URL host. The matching score is 32.

Defined in

uri/src/selectors.ts:26


pathname

Optional pathname: string | RegExp

A filter for the required URL path. The matching score is 8.

Defined in

uri/src/selectors.ts:20


port

Optional port: string | number | RegExp

A filter for the required URL port. The matching score is 16.

Defined in

uri/src/selectors.ts:23


protocol

Optional protocol: string | RegExp

A filter for the required URL protocol. The matching score is 4.

Defined in

uri/src/selectors.ts:17


uri

Optional uri: string | RegExp

A filter for the required URL (all-in-one filter). The matching score is 64.

Defined in

uri/src/selectors.ts:29