def proxy.from.authority

bend-kit-http@0.38.2.0 · http.bend:2993

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

2993def proxy.from.authority(has_user: Bool, authority: String, split: String & String) ->
2994    Maybe<&2, Proxy>:
2995  match has_user:
2996    case False{}:
2997      proxy.from.abs("", Url.absolute("http://" ++ authority))
2998    case True{}:
2999      (user, host) = split
3000      proxy.from.user(user, host)

Uses (10)

Used by (1)