<aside> <img src="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" alt="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" width="40px" />

TABLE OF CONTENT

</aside>

<aside> <img src="attachment:67839a56-4568-4069-ab3e-105a616d4ca8:info.png" alt="attachment:67839a56-4568-4069-ab3e-105a616d4ca8:info.png" width="40px" />

This methods are available under :ij-package: dev.tommasop1804.springutils.servlet.response (with references to :ij-java-class: ResponseEntity) and under :ij-package: dev.tommasop1804.springutils.reactive.response (with references to :ij-java-interface: ServerResponse). In case of ...reactive.response, each of the following functions should be understood as suspended.

</aside>

Since version 1.0.0
JVM class name ResponseUtilsKt

Properties


Response exntension properties

:ij-field-value: ResponseEntity<*>.status

Since version 2.2.6
Receiver :ij-java-class: ResponseEntity<*>
Type HttpStatus
Throws NoSuchEntryException → if the sattus code is not recognised

Retrieves the HTTP status associated with the response.

Functions


Builder extension functions

:ij-function: ResponseEntity.BodyBuilder.expires(TemporalAccessor)

Since version 1.0.0
Receiver :ij-java-interface: ResponseEntity.BodyBuilder
Returns :ij-java-interface: ResponseEntity.BodyBuilder
Parameters time: :ij-java-interface: TemporalAccessor → the expiration time to be set in the Expires header

Adds an Expires header to the HTTP response with the specified expiration time.