UrlMatchFlag class final

How a URL pattern matches a request's URL.

A pattern matches the whole URL, query included. Without flags, it matches only the URL that equals it exactly.

See mln_url_match_flag in the C API reference.

Constructors

UrlMatchFlag.fromRawValue(int rawValue)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
rawValue → int
The value's C representation, which may be one this binding predates.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(UrlMatchFlag other) → bool
Whether every bit of other is set in this value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator &(UrlMatchFlag other) → UrlMatchFlag
inherited
operator ==(Object other) → bool
The equality operator.
inherited
operator |(UrlMatchFlag other) → UrlMatchFlag
inherited

Constants

glob → const UrlMatchFlag
The URL matches the pattern as a glob. * matches any characters except /, ** matches any characters, and ? matches one character except /. \ makes the next character match only itself. For example, https://*.example.com/tiles/** matches every URL under /tiles/ on each subdomain of example.com.
none → const UrlMatchFlag
No flags.