Header menu logo Navs

UrlInfo Type

The result of parsing a URL This is used to represent the different components of a URL Since we're just parsing the string, all of the values are strings

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 have the hash ValueSome "123"

Query

Full Usage: Query

Field type: Dictionary<string, QueryValue>

The query parameters of the URL

Field type: Dictionary<string, QueryValue>
Example

/users?name&age&optional will have the query parameters { { "name", String "john" } { "age", String "30" } { "optional", ValueNone } }

Segments

Full Usage: Segments

Field type: string list

The segments of the

Field type: string list
Example

/users/123 will have the segments [ "users"; "123" ]

Type something to start searching.