<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>

Package dev.tommasop1804.springutils
Since version 1.0.0
JVM class name UtilsKt

Properties


Conditionals

:ij-field-value: Any.eTag

Since version 1.0.0
Receiver Any
Type String
Dinamically computed ✔️

Computes a unique hash-based identifier (eTag) for the current object.

The eTag is generated by converting the object to its JSON representation and then applying an MD5 hash algorithm to produce a hexadecimal string. This identifier can be used for caching, validation, and resource versioning purposes.

Functions


Headers factoring functions

:ij-function: HttpHeaders(vararg Pair<String, List<Any>>)

Since version 1.0.0
Returns HttpHeaders
Parameters vararg headers: Pair<String, List<Any>> → pairs of header names and their corresponding lists of values, where the values are converted to strings and associated with the header name in the HttpHeaders

Constructs an instance of HttpHeaders from the provided key-value pairs, where each key represents the name of the header and each value is a list of objects. The objects are converted to their string representations to define the header values.

:ij-function: HttpHeaders(vararg Pair<String, Any>)