def packed.reply.of

emerging-ezhttp@0.21.0.0 · src/packed.bend:203

import emerging-ezhttp@0.21.0.0/src/packed.bend as Packed
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

203# the response to a request with this method, its octets counted
204def packed.reply.of(+method: String, r: Bytes.Bytes & U32) -> Got:
205  (b, +len) = r
206  packed.heads(U32.to_nat(len), String.eq(method, "HEAD"), b, 0, len)

Uses (9)

Used by (1)