//urlshortener/app.cash.tempest.urlshortener/UrlShortener
UrlShortener¶
interface UrlShortener
Inheritors¶
RealUrlShortener |
Functions¶
Name | Summary |
---|---|
redirect | [jvm] abstract fun redirect(shortUrl: String): String? Redirects shortUrl to its destination. |
shorten | [jvm] abstract fun shorten(shortUrl: String, destinationUrl: String): Boolean Creates a custom alias from shortUrl to destinationUrl. |