eventStream
fun <B : Any, D : Any> eventStream(method: Method, pathTemplate: String, pathParameters: Parameters? = null, queryParameters: Parameters? = null, body: B? = null, contentTypes: List<MediaType>? = null, acceptTypes: List<MediaType>? = null, headers: Parameters? = null, decoder: (TextMediaTypeDecoder, String?, String?, String, Logger) -> D?): Flow<D>
fun <D : Any> eventStream(method: Method, pathTemplate: String, pathParameters: Parameters? = null, queryParameters: Parameters? = null, contentTypes: List<MediaType>? = null, acceptTypes: List<MediaType>? = null, headers: Parameters? = null, decoder: (TextMediaTypeDecoder, String?, String?, String, Logger) -> D?): Flow<D>
Creates an Flow of events that uses the provided request parameters to supply the Request used for connecting to the Server-Sent Events stream.
Return
Flow of events.
Parameters
decoder
Function used to decode events from the SSE stream.