href

inline fun <T> href(resourcesFormat: ResourcesFormat, resource: T, urlBuilder: URLBuilder)
inline fun <T> href(resourcesFormat: ResourcesFormat, resource: T): String

Constructs a URL for the resource.

The class of the resource instance must be annotated with Resource.


fun <T> href(resourcesFormat: ResourcesFormat, serializer: KSerializer<T>, resource: T, urlBuilder: URLBuilder)