href

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

Constructs a URL for resource.

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