| Package | Description |
|---|---|
| ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
| ratpack.handling |
The handling of application requests.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
GroovyByMethodSpec
Closure overloads of methods from
ByContentSpec. |
| Modifier and Type | Method and Description |
|---|---|
ByMethodSpec |
ByMethodSpec.delete(Handler handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.delete(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.get(Handler handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.get(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.named(String methodName,
Handler handler)
Defines the action to to take if the request has a HTTP method of
methodName. |
ByMethodSpec |
ByMethodSpec.named(String methodName,
NoArgAction handler)
Defines the action to to take if the request has a HTTP method of
methodName. |
ByMethodSpec |
ByMethodSpec.patch(Handler handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.patch(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.post(Handler handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.post(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.put(Handler handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec |
ByMethodSpec.put(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Context.byMethod(Action<? super ByMethodSpec> action)
Respond to the request based on the request method.
|