def stream.res
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
4834# Status and headers. Its body is empty: read the body with stream.read.
4835def stream.res(st: Stream) -> Stream & Res:
4836 Stream{tls, s, ms, res, rb, out, decs, back} = st
4837 Res{+status, +headers, body} = res
4838 (Stream{tls, s, ms, Res{status, headers, body}, rb, out, decs, back}, Res{status, headers, Bytes.new(0)})