build

open override fun build(): StreamResponseDefinition<P, T>

Builds an instance of StreamResponseDefinition.

This method finalizes the construction of a StreamResponseDefinition by encapsulating the data flow, chunked list, HTTP status code, and headers defined in the current instance of the builder. The resulting StreamResponseDefinition can then be used to represent a streaming response.

Return

A fully constructed StreamResponseDefinition instance containing the configured response details.

Parameters

P

The type of the request body.

T

The type of data being streamed.