dillonkearns/elm-pages-v3-beta/19.0.0

NOTE: the latest version is 21.0.0

Pages.PageUrl

Same as a Url in elm/url, but slightly more structured. The path portion of the URL is parsed into a List String representing each segment, and the query params are parsed into a Dict String (List String).

type alias PageUrl =
{ protocol : Protocol
, host : String
, port_ : Maybe Int
, path : Path
, query : Dict String (List String)
, fragment : Maybe String
}
toUrl : PageUrl -> Url
parseQueryParams : String -> Dict String (List String)