basic-http
Toggle table of contents
2.0
jvm
Platform filter
jvm
Switch theme
Search in API
basic-http
basic-http
/
core.domain.request
/
Mapping
Mapping
@
Target
(
allowedTargets
=
[
AnnotationTarget.FIELD
,
AnnotationTarget.FUNCTION
]
)
annotation class
Mapping
(
val
path
:
String
,
val
method
:
RequestMethod
)
Annotation to map a function to a route
Parameters
path
the path of the route
method
the method of the route
Members
Properties
method
Link copied to clipboard
val
method
:
RequestMethod
path
Link copied to clipboard
val
path
:
String