def parse.body

emerging-ezhttp@0.21.0.0 · src/url.bend:135

import emerging-ezhttp@0.21.0.0/src/url.bend as Url
import Base

135# what follows the scheme, once it is known whether it opens with `//`
136def parse.body(+scheme: String, +rest: String, slashes: Bool) -> Loc:
137  match slashes:
138    case False{}:
139      Bad{scheme ++ ":" ++ rest ++ " has no //"}
140    case True{}:
141      parse.hier(scheme, String.drop(rest, 2n))

Uses (6)

Used by (1)