|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
betamax.proxy.Responsebetamax.proxy.Message
betamax.proxy.WritableResponse
interface WritableResponse extends Response
Method Summary | |
---|---|
void
|
addHeader(java.lang.String name, java.lang.String value)
Adds a header to this response. |
java.io.OutputStream
|
getOutputStream()
Returns a stream that can be used to write data to the response body. |
java.io.Writer
|
getWriter()
Returns a `Writer` that can be used to write text to the response body. |
void
|
setError(int status, java.lang.String reason)
|
void
|
setStatus(int status)
|
Methods inherited from interface Response | |
---|---|
getContentType, getStatus |
Methods inherited from interface Message | |
---|---|
getBodyAsBinary, getBodyAsText, getHeader, getHeaders, hasBody |
Method Detail |
---|
void addHeader(java.lang.String name, java.lang.String value)
name
- the header name.value
- the header value.
java.io.OutputStream getOutputStream()
java.io.Writer getWriter()
void setError(int status, java.lang.String reason)
void setStatus(int status)
Groovy Documentation