def request
bend-kit-hairpin@0.14.0.0 · hairpin.bend:484
import bend-kit-hairpin@0.14.0.0/hairpin.bend as Hairpin
import Base
import bend-kit-http@0.38.1.1/http.bend as Http
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-retry@0.3.0.0/retry.bend as Retry
484
485
486
487
488
489def request(c: Client, +method: String, url: String, headers: Map<&2, List<&2, String>>, body: Bytes.Bytes) ->
490 IO(Client & Result<&1, &1, Err, Http.Res>):
491 do IO<Client & Result<&1, &1, Err, Http.Res>>:
492 y : Client & Retry.Budget <- budget(c)
493 x : Client & Retry.Budget & Result<&1, &1, Err, Http.Res> <- request.budget(method, url, headers, body, y)
494 return request.drop(x)