def fetch.piece.cap

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

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

2568def fetch.piece.cap(over: Bool, +head: Bool, rv: Rv, +n2: U32, +len: U32, buf: Array<U32>) -> Fl:
2569  match over:
2570    case True{}:
2571      FlBad{None{}, False{}}
2572    case False{}:
2573      fetch.rt(n2, rv.step(U32.is_zero(len), head, rv, Bytes.Bytes{len, buf}))

Uses (10)

Used by (1)