Header menu logo Navs

UrlMatch Type

The result of a successful match between a URL and a templated URL

Record fields

Record Field Description

Hash

Full Usage: Hash

Field type: string voption

The hash of the URL

Field type: string voption
Example

/users#123 will match /users#123 Hash = ValueSome "123"

Params

Full Usage: Params

Field type: IReadOnlyDictionary<string, obj>

The matched segments of the URL, this will be used to extract the parameters

Field type: IReadOnlyDictionary<string, obj>
Example

/:id/:name will match /123/john and the segments will be Params["id"] = 123 Params["name"] = "john"

QueryParams

Full Usage: QueryParams

Field type: IReadOnlyDictionary<string, obj>

The matched query parameters of the URL, this will be used to extract the parameters

Field type: IReadOnlyDictionary<string, obj>
Example

/users?name&age will match /users?name=john&age=30 QueryParams["name"] = "john" QueryParams["age"] = 30

Type something to start searching.