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