|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface Message
An abstraction of an HTTP request or response. Implementations can be backed by any sort of underlying implementation.
Method Summary | |
---|---|
java.io.InputStream
|
getBodyAsBinary()
Returns the message body in its raw binary form. |
java.io.Reader
|
getBodyAsText()
Returns the message body as a string. |
java.lang.String
|
getHeader(java.lang.String name)
@param name an HTTP header name. |
java.util.Map
|
getHeaders()
@return all HTTP headers attached to this message. |
boolean
|
hasBody()
@return `true` if the message currently contains a body, `false` otherwise. |
Method Detail |
---|
java.io.InputStream getBodyAsBinary()
java.io.Reader getBodyAsText()
java.lang.String getHeader(java.lang.String name)
name
- an HTTP header name.
java.util.Map getHeaders()
boolean hasBody()
Groovy Documentation