href

inline fun <T : Any> Application.href(resource: T): String
inline fun <T : Any> Application.href(resource: T, urlBuilder: URLBuilder)

Constructs a URL for resource.

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