Locations
open class Locations
EXPERIMENTAL Ktor feature that allows to handle and construct routes in a typed way.
You have to create data classes/objects representing parameterized routes and annotate them with Location. Then you can register sub-routes and handlers for those locations and create links to them using Locations.href.
Types
class Configuration Configuration for Locations. |
|
companion object Feature : Installable feature for Locations. |
Constructors
Locations( EXPERIMENTAL Ktor feature that allows to handle and construct routes in a typed way. |
Functions
Creates all necessary routing entries to match specified locationClass. |
|
Constructs the url for location. |
|
fun <T : Any> resolve( Resolves parameters in a call to an instance of specified locationClass. fun <T : Any> resolve( Resolves parameters to an instance of specified locationClass. |
Companion Object Properties
val key: AttributeKey<Locations> Unique key that identifies a feature |
Companion Object Functions
fun install( Feature installation script |