def encode.body

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

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

1683def encode.body(head: Bool, top: Bytes.Bytes, body: Bytes.Bytes) -> Bytes.Bytes:
1684  match head:
1685    case True{}:
1686      top
1687    case False{}:
1688      Bytes.append(top, body)

Uses (3)

Used by (1)