def proxy.choose

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

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

3096def proxy.choose(bypass: Bool, value: String) -> Maybe<&2, Proxy>:
3097  match bypass:
3098    case True{}:
3099      Some{ProxyDirect{}}
3100    case False{}:
3101      proxy.from.env(value)

Uses (5)

Used by (1)