def client.request.encoded

bend-kit-http2@0.4.0.0 · http2.bend:479

import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-http2@0.4.0.0/hpack.bend as Hpack

479def client.request.encoded(m: Maybe<&1, Hpack.State & Bytes.Bytes>, c: Client, body: Bytes.Bytes) -> Reply:
480  match m:
481    case None{}:
482      Failed{Error{1, True{}, 0}}
483    case Some{(encoder, block)}:
484      client.request.body(Bytes.length(body), encoder, block, c)

Uses (11)

Used by (1)