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