def proxy.from.parts

bend-kit-http@0.38.4.0 · http.bend:3002

import bend-kit-http@0.38.4.0/http.bend as Http
import Base
import bend-kit-url@0.4.1.0/url.bend as Url

3002def proxy.from.parts(parts: String & String) -> Maybe<&2, Proxy>:
3003  (+authority, path) = parts
3004  match path:
3005    case SNil{}:
3006      proxy.from.authority(Url.has(authority, 64), authority, Url.take_to(authority, 64))
3007    case other:
3008      None{}

Uses (8)

Used by (1)