def stream.res
import bend-kit-http@0.38.5.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
4838# Status and headers. Its body is empty: read the body with stream.read.
4839def stream.res(st: Stream) -> Stream & Res:
4840 Stream{tls, s, ms, res, rb, out, decs, back} = st
4841 Res{+status, +headers, body} = res
4842 (Stream{tls, s, ms, Res{status, headers, body}, rb, out, decs, back}, Res{status, headers, Bytes.new(0)})