Skip to content

Cerces


Cerces / middleware/trusted-host / createHostMatcher

Function: createHostMatcher()

createHostMatcher(pattern): (host) => boolean

Defined in: src/middleware/trusted-host.ts:5

Creates a host matcher function based on the provided pattern.

Parameters

pattern

string

Returns

(host): boolean

Parameters

host

string

Returns

boolean