def stream.mk

bend-kit-http@0.38.4.0 · http.bend:4692

import bend-kit-http@0.38.4.0/http.bend as Http
import Base
import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib

4692# Bytes past the body put the socket out of step with the server, so it cannot go back to a pool.
4693def stream.mk(+tls: Bool, s: Socket, +ms: U32, res: Res, decs: List<&1, Zlib.Decoder>, back: Maybe<&2, String>, x: Pc & Bool) -> Stream:
4694  (pc, extra) = x
4695  Pc{rb, out} = pc
4696  Stream{tls, s, ms, res, rb, out, decs, Bool.pick(Maybe<&2, String>, extra, None{}, back)}

Uses (13)

Used by (2)