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(Block block)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.delete(Handler handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.get(Block block)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.get(Handler handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.named(String methodName,
Block block)
Defines the action to to take if the request has a HTTP method of
methodName . |
ByMethodSpec |
ByMethodSpec.named(String methodName,
Handler handler)
Defines the action to to take if the request has a HTTP method of
methodName . |
ByMethodSpec |
ByMethodSpec.patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.patch(Handler handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.post(Block block)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.post(Handler handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.put(Block block)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec |
ByMethodSpec.put(Handler 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.
|