public interface ByMethodSpec
Context.byMethod(ratpack.func.Action)
Modifier and Type | Method and Description |
---|---|
ByMethodSpec |
delete(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
get(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
named(String methodName,
NoArgAction handler)
Defines the action to to take if the request has a HTTP method of
methodName . |
ByMethodSpec |
patch(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
post(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
put(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec get(NoArgAction handler)
handler
- The handler to invoke if the request method matchesByMethodSpec post(NoArgAction handler)
handler
- The handler to invoke if the request method matchesByMethodSpec put(NoArgAction handler)
handler
- The handler to invoke if the request method matchesByMethodSpec patch(NoArgAction handler)
handler
- The handler to invoke if the request method matchesByMethodSpec delete(NoArgAction handler)
handler
- The handler to invoke if the request method matchesByMethodSpec named(String methodName, NoArgAction handler)
methodName
.
The method name is case insensitive.
methodName
- The HTTP method to map the given action tohandler
- The handler to invoke if the request method matches