Stream Response Definition
Represents a definition for streaming responses, supporting chunked data and flow-based content streaming. This class extends the base AbstractResponseDefinition
to provide additional functionality specific to chunked or streamed responses. It can handle flow-based content delivery, manage chunk-wise delays, and supports various output formats such as OutputStream
, Writer
, or ServerSSESession
.
Parameters
The type of the request body.
The type of the response data being streamed.
See also
Inheritors
Constructors
Initializes a streaming response definition with the specified flow, chunk list, content type, HTTP status code, and headers.
Properties
The MIME type of the response content. Defaults to null
.
Delay between the transmission of each chunk.
A list of header key-value pairs to populate the response headers. Defaults to an empty list.
The HTTP status code of the response. Defaults to HttpStatusCode.OK.