toResponseEntity
fun TapikResponse.toResponseEntity(status: Status, headers: Map<String, List<String>> = emptyMap(), mediaType: MediaType? = null, body: ByteArray? = null): ResponseEntity<Any>(source)
Converts a generated Tapik response into a Spring ResponseEntity.
Receiver
Tapik-managed response instance being converted.
Return
Spring ResponseEntity carrying the response status, headers, and body.
Parameters
status
HTTP status resolved for the response variant.
headers
encoded HTTP headers grouped by header name.
mediaType
optional content type advertised by the selected endpoint output.
body
optional response body already encoded for the wire.