eventSource

fun <B : Any> eventSource(method: Method, pathTemplate: String, pathParameters: Parameters? = null, queryParameters: Parameters? = null, body: B? = null, contentTypes: List<MediaType>? = null, acceptTypes: List<MediaType>? = null, headers: Parameters? = null): EventSource
fun eventSource(method: Method, pathTemplate: String, pathParameters: Parameters? = null, queryParameters: Parameters? = null, contentTypes: List<MediaType>? = null, acceptTypes: List<MediaType>? = null, headers: Parameters? = null): EventSource

Creates an EventSource that uses the provided request parameters to supply the Request used for connecting to the Server-Sent Events stream.

Return

EventSource instance.