spring-framework / org.springframework.http.codec / HttpMessageEncoder / getEncodeHints

getEncodeHints

open fun getEncodeHints(actualType: ResolvableType, elementType: ResolvableType, @Nullable 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.

Parameters

actualType - the actual source type to encode, possibly a reactive wrapper and sourced from org.springframework.core.MethodParameter, i.e. providing access to method annotations.

elementType - the element type within Flux/Mono that we're trying to encode.

request - the current request

response - the current response

Return
a Map with hints, possibly empty