def client.fragments.join

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

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

927def client.fragments.join(first: Bytes.Bytes, second: Bytes.Bytes) -> Bytes.Bytes:
928  Bytes.Bytes{len, buf} = first
929  match len:
930    case 0:
931      second
932    case +count:
933      Bytes.append(Bytes.Bytes{count, buf}, second)

Uses (6)

Used by (1)