def up.origin.choice
bend-kit-http@0.38.5.0 · http.bend:5418
import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
5418def up.origin.choice(+method: String, +ms: U32,
5419 headers: Map<&2, List<&2, String>>, hf: String,
5420 scheme: String, host: String, port: U32, target: String,
5421 cert: Maybe<&2, Cert>, +ca: String, choice: Maybe<&2, Proxy>) ->
5422 IO(Result<&1, &1, Err, Up>):
5423 match choice:
5424 case None{}:
5425 IO.pure(Result<&1, &1, Err, Up>, Fail{ErrUrl{}})
5426 case Some{proxy}:
5427 up.route(ms, origin.route(method, headers, Bytes.new(0), hf, scheme, host,
5428 port, target, cert, ca, proxy))