def up.chunk
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
5490def up.chunk(+tls: Bool, s: Socket, +ms: U32, +head: Bool, piece: Bytes.Bytes) -> IO(Up & Result<&2, &2, Err, Unit>):
5491 Bytes.Bytes{+len, buf} = piece
5492 up.put(tls, s, ms, head, len, Bytes.Bytes{len, buf}, U32.is_zero(len))