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 |
GroovyByContentSpec
Closure overloads of methods from
ByContentSpec . |
Modifier and Type | Method and Description |
---|---|
ByContentSpec |
ByContentSpec.html(Handler handler)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
ByContentSpec |
ByContentSpec.json(Handler handler)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
ByContentSpec |
ByContentSpec.plainText(Handler handler)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
ByContentSpec |
ByContentSpec.type(String mimeType,
Handler handler)
Specifies that the given handler should be used if the client wants content of the given mime type.
|
ByContentSpec |
ByContentSpec.xml(Handler handler)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
Modifier and Type | Method and Description |
---|---|
void |
Context.byContent(Action<? super ByContentSpec> action)
Respond to the request based on the requested content type (i.e.
|