def proxy.request

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

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

3802def proxy.request(secure: Bool, +scheme: String, method: String,
3803    +target: String, +hf: String, headers: Map<&2, List<&2, String>>,
3804    body: Bytes.Bytes, authorization: String) -> Send:
3805  match secure:
3806    case True{}:
3807      Send{method, target, hf, Map.del(&2, List<&2, String>, headers,
3808        "proxy-authorization"), body}
3809    case False{}:
3810      Send{method, proxy.absolute(scheme, hf, target), hf,
3811        proxy.http.headers(headers, authorization), body}

Uses (9)

Used by (1)