def http.loc.shaped

emerging-ezhttp@0.21.0.0 · src/client.bend:59

import emerging-ezhttp@0.21.0.0/src/client.bend as Client
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import emerging-ezhttp@0.21.0.0/src/url.bend as Url
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import emerging-ezhttp@0.21.0.0/src/body.bend as Body
import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Spec

59# an exchange for a body of this shape, sent with the body's octets
60def http.loc.shaped(method: String, l: Url.Loc,
61  headers: List<&2, Http.Header>, r: Body.Shape & Bytes.Bytes)
62  -> IO(Response):
63  (shape, tail) = r
64  http.send(Spec.wire.exchange.body(method, l, headers, shape), tail)

Uses (12)

Used by (1)