Accept header
Accept header
Accept header media types (normalized, no parameters)
Accept header media types (normalized, no parameters)
Set Accept header with list of values
Set Accept header with list of values
Set Accept header
Set Accept header
Add a cookie
Add a cookie
Allow header
Allow header
Set Authorization header
Set Authorization header
Set Authorization header
Set Authorization header
Get Authorization header
Get Authorization header
Set Authorization header
Set Authorization header
Get Cache-Control header
Get Cache-Control header
Set Cache-Control header with a max-age (and must-revalidate).
Set Cache-Control header with a max-age (and must-revalidate).
Set Cache-Control header
Set Cache-Control header
Get charset from Content-Type header
Get charset from Content-Type header
Set charset in Content-Type header.
Set charset in Content-Type header. This does not change the content.
Clear content (set to "").
Clear content (set to "").
End the response stream.
End the response stream.
Get Content-Length header.
Get Content-Length header. Use length to get the length of actual content.
Set Content-Length header.
Set Content-Length header. Normally, this is automatically set by the Codec, but this method allows you to override that.
Get the content as a string.
Get the content as a string.
Set the content as a string.
Set the content as a string.
Get Content-Type header
Get Content-Type header
Set Content-Type header
Set Content-Type header
Cookies.
Cookies. In a request, this uses the Cookie headers. In a response, it uses the Set-Cookie headers.
Arbitrary user-defined context associated with this response object.
Arbitrary user-defined context associated with this response object. RecordSchema.Record is used here, rather than Context or similar out-of-band mechanisms, to make the connection between the response and its associated context explicit.
Get Date header
Get Date header
Set Date header by Date
Set Date header by Date
Set Date header
Set Date header
Encode as an HTTP message
Get Expires header
Get Expires header
Set Expires header by Date
Set Expires header by Date
Set Expires header
Set Expires header
Get iterator over Cookies
Get iterator over Cookies
Get InputStream for content.
Get InputStream for content. Caller must close. (Java interface. Scala users should use withInputStream.)
Get Reader for content.
Get Reader for content. (Java interface. Scala users should use withReader.)
Get Host header
Get Host header
Set Host header
Set Host header
Check if X-Requested-With contains XMLHttpRequest, usually signalling a request from a JavaScript AJAX libraries.
Check if X-Requested-With contains XMLHttpRequest, usually signalling a request from a JavaScript AJAX libraries. Some servers treat these requests specially. For example, an endpoint might render JSON or XML instead HTML if it's an XmlHttpRequest. (Tip: don't do this - it's gross.)
Get Last-Modified header
Get Last-Modified header
Set Last-Modified header by Date
Set Last-Modified header by Date
Set Last-Modified header
Set Last-Modified header
Get length of content.
Get length of content.
Get Location header
Get Location header
Set Location header
Set Location header
Get media-type from Content-Type header
Get media-type from Content-Type header
Set media-type in Content-Type header.
Set media-type in Content-Type header. Charset and parameter values are preserved, though may not be appropriate for the new media type.
A read-only handle to the internal stream of bytes, representing the message body.
A read-only handle to the internal stream of bytes, representing the message body. See com.twitter.io.Reader for more information.
Get Referer [sic] header
Get Referer [sic] header
Set Referer [sic] header
Set Referer [sic] header
Remove a cookie
Remove a cookie
Get Retry-After header
Get Retry-After header
Set Retry-After header by seconds
Set Retry-After header by seconds
Set Retry-After header
Set Retry-After header
Get Server header
Get Server header
Set Server header
Set Server header
Set Content-Type header by media-type and charset
Set Content-Type header by media-type and charset
Set Content-Type header to application/json;charset=utf-8
Set Content-Type header to application/json;charset=utf-8
Get User-Agent header
Get User-Agent header
Set User-Agent header
Set User-Agent header
Use content as InputStream.
Use content as InputStream. The underlying channel buffer's reader index is advanced. (Scala interface. Java users can use getInputStream().)
Use content as OutputStream.
Use content as OutputStream. Content is replaced with stream contents. (Java users can use this with a Function, or use Netty's ChannelBufferOutputStream and then call setContent() with the underlying buffer.)
Use content as Reader.
Use content as Reader. (Scala interface. Java usrs can use getReader().)
Use as a Writer.
Use as a Writer. Content is replaced with writer contents.
Append ChannelBuffer to content.
Append ChannelBuffer to content.
If isChunked
then multiple writes must be composed using writer
and
flatMap
to have the appropriate backpressure semantics.
Attempting to write
after calling close
will result in a thrown
com.twitter.io.Reader.ReaderDiscarded.
Append bytes to content.
Append bytes to content.
Append string to content.
Append string to content.
A write-only handle to the internal stream of bytes, representing the message body.
A write-only handle to the internal stream of bytes, representing the message body. See com.twitter.io.Writer for more information.
Get WWW-Authenticate header
Get WWW-Authenticate header
Set WWW-Authenticate header
Set WWW-Authenticate header
Get X-Forwarded-For header
Get X-Forwarded-For header
Set X-Forwarded-For header
Set X-Forwarded-For header
Rich HttpResponse