responds With Sse Stream
infix fun <T : Any> respondsWithSseStream(block: StreamingResponseDefinitionBuilder<P, <Error class: unknown class><T>>.() -> Unit)
Associates the current request specification with a server-sent events (SSE) streaming response definition. This method is part of a fluent API for defining mappings between requests and SSE streaming responses.
Parameters
P
The type of the request payload.
T
The type of data
field in the ServerSentEventMetadata.
block
A lambda function applied to a StreamingResponseDefinitionBuilder specifically for configuring the response as a stream of server-sent events.
fun <T : Any> respondsWithSseStream(responseType: KClass<T>, block: StreamingResponseDefinitionBuilder<P, <Error class: unknown class><T>>.() -> Unit)