responds With Sse Stream
Associates the current RequestSpecification 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
The type of the request payload.
The type of data field in the ServerSentEventMetadata.
A suspend lambda applied to a StreamingResponseDefinitionBuilder specifically for configuring the response as a stream of server-sent events.
Associates the current RequestSpecification with an SSE streaming response definition.
This overload accepts an explicit responseType class token to help the compiler infer the type parameter T (type-witness pattern). The responseType value itself is not used at runtime.
Parameters
The type of data field in the ServerSentEventMetadata.
A KClass token for T, used only for type inference at the call site.
A suspend lambda applied to a StreamingResponseDefinitionBuilder.