def pool.one

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

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

3887# One request, on an idle socket to its origin when the pool has one. The hop comes back for the redirect.
3888def pool.one(p: Pool, h: Hop, +ms: U32, cert: Maybe<&2, Cert>, +ca: String, jar: Maybe<&2, Jar>) -> IO(Pool & Result<&1, &1, Err, Res> & Hop):
3889  Hop{+method, +url, +headers, body} = h
3890  pool.one.of(p, method, url, headers, jar.opt.apply(jar, url, headers), ms, Bytes.slice(body, 0, 4294967295), cert, ca)

Uses (15)

Used by (1)