Match

external interface Match(source)

Properties

Link copied to clipboard
abstract external var host: String?

Host name to match, for standard schemes. It is compared with the URL's host as a whole, case-insensitively; there is no wildcard or subdomain matching. Omit to match any host.

Link copied to clipboard
abstract external var path: String?

Path prefix to match, starting with / and written as it appears in a URL (percent-encoded). Defaults to /.