Streaming Response Definition Builder
open class StreamingResponseDefinitionBuilder<P : Any, T> : AbstractResponseDefinitionBuilder<P, T> (source)
A builder for constructing streaming response definitions.
This class is responsible for building instances of StreamResponseDefinition, which define responses capable of streaming data either as chunks or via a flow.
Type Parameters
P
The type of the request body.
T
The type of data being streamed.
Properties
Link copied to clipboard
Link copied to clipboard
A list of data chunks to be sent as part of the stream, if flow is not provided.
Link copied to clipboard
The Content-Type of the HTTP response. Defaults to text/event-stream; charset=UTF-8.
Link copied to clipboard
Link copied to clipboard
Entry point for header configuration. Supports two syntaxes:
Link copied to clipboard
The HTTP status code of the response.
Link copied to clipboard
The HTTP status code to be associated with the response.
Link copied to clipboard
The CapturedRequest being processed.