def get.loc

ezx@1.11.0.0 · src/hub/get.bend:43

import ezx@1.11.0.0/src/hub/get.bend as Get
import Base
import emerging-ezhttp@0.14.0.0/src/url.bend as Url

43# a url that came apart, or the reason it did not
44def get.loc(loc: Url.Loc, url: String) -> IO(String):
45  match loc:
46    case Url.Bad{why}:
47      IO.pure(String, "22\n" ++ why)
48    case Url.Loc{+scheme, _host, _port, path}:
49      get.scheme(String.eq(scheme, "file"), url, path)

Uses (7)

Used by (1)