interface HttpMessageEncoder<T : Any> : Encoder<T>
Extension of Encoder exposing extra methods relevant in the context of HTTP request or response body encoding.
Author
Rossen Stoyanchev
Since
5.0
open fun getEncodeHints(actualType: ResolvableType, elementType: ResolvableType, mediaType: MediaType, request: ServerHttpRequest, response: ServerHttpResponse): MutableMap<String, Any>
Get decoding hints based on the server request or annotations on the target controller method parameter. |
|
abstract fun getStreamingMediaTypes(): MutableList<MediaType>
Return "streaming" media types for which flushing should be performed automatically vs at the end of the input stream. |
abstract class AbstractJackson2Encoder : Jackson2CodecSupport, HttpMessageEncoder<Any>
Base class providing support methods for Jackson 2.9 encoding. |