Path

Attribute that indicates that the paramater is from a path's regex capture. The number of parameters annotated with @Path should correspond to the number of captures in the path. The type of the parameter can be any type that can be converted from a string: it's the programmer's duty to write a regular expression that won't cause any conversion exception.

Examples

@Get("([a-z]+)")
_(Response response, @Path string capture) {
   ...
}

Meta