def stream_reply

emerging-ezhttp@0.21.0.0 · main.bend:404

import emerging-ezhttp@0.21.0.0/main.bend as EmergingEzhttp
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import emerging-ezhttp@0.21.0.0/src/server.bend as Server

404# a reply streamed chunked: each chunk the channel gives is written as it
405# comes, and the body ends when the channel is closed
406def stream_reply(  # noqa: L001 constructor of Server.Answer, which holds a channel
407  status: U32, headers: List<&2, Http.Header>, chunks: Chan(Bytes.Bytes))
408  -> Server.Answer:
409  Server.StreamReply{status, headers, chunks}

Uses (6)

Used by (0)

No other definition uses this definition.