Package | Description |
---|---|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
Modifier and Type | Method and Description |
---|---|
GroovyByContentHandler |
GroovyByContentHandler.html(Closure<?> closure)
Convenience method to respond with "text/html" mime type.
|
GroovyByContentHandler |
GroovyByContentHandler.json(Closure<?> closure)
Convenience method to respond with "application/json" mime type.
|
GroovyByContentHandler |
GroovyByContentHandler.plainText(Closure<?> closure)
Convenience method to respond with "text/plain" mime type.
|
GroovyByContentHandler |
GroovyByContentHandler.type(String mimeType,
Closure<?> closure)
Register how to respond with the given mime type.
|
GroovyByContentHandler |
GroovyByContentHandler.xml(Closure<?> closure)
Convenience method to respond with "application/xml" mime type.
|