open class ServerSentEventHttpMessageReader : HttpMessageReader<Any>
Reader that supports a stream of ServerSentEvents and also plain Objects which is the same as an ServerSentEvent with data only.
Author
Sebastien Deleuze
Author
Rossen Stoyanchev
Since
5.0
ServerSentEventHttpMessageReader()
Constructor without a ServerSentEventHttpMessageReader(decoder: Decoder<*>)
Constructor with JSON |
open fun canRead(elementType: ResolvableType, mediaType: MediaType): Boolean |
|
open fun getDecoder(): Decoder<*>
Return the configured |
|
open fun getReadableMediaTypes(): MutableList<MediaType> |
|
open fun read(elementType: ResolvableType, message: ReactiveHttpInputMessage, hints: MutableMap<String, Any>): Flux<Any> |
|
open fun readMono(elementType: ResolvableType, message: ReactiveHttpInputMessage, hints: MutableMap<String, Any>): Mono<Any> |