com.twitter.finatra.http.response
Returns an HTTP 201 Created
response with a written body.
Returns an HTTP 201 Created
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 201 Created
response.
Returns an HTTP 502 Bad Gateway
response.
Returns an HTTP 400 Bad Request
response with a written body.
Returns an HTTP 400 Bad Request
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 400 Bad Request
response.
Returns an HTTP 499 Client Closed
response
Returns an HTTP 409 Conflict
response with a written body.
Returns an HTTP 409 Conflict
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 409 Conflict
response.
Generic method to wrap a com.twitter.finagle.http.Response with this builder for augmenting the response.
Generic method to wrap a com.twitter.finagle.http.Response with this builder for augmenting the response.
the com.twitter.finagle.http.Response to wrap.
Returns an HTTP 201 Created
response with a written body.
Returns an HTTP 201 Created
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 201 Created
response.
Returns an HTTP 403 Forbidden
response with a written body.
Returns an HTTP 403 Forbidden
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 403 Forbidden
response
Returns an HTTP 302 Found
response.
Returns an HTTP 410 Gone
response with a written body.
Returns an HTTP 410 Gone
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 410 Gone
response
Representation of the text/html
content type governed by
the includeContentTypeCharset Boolean which determines if the UTF-8 charset encoding
parameter should be included in the content type.
Representation of the text/html
content type governed by
the includeContentTypeCharset Boolean which determines if the UTF-8 charset encoding
parameter should be included in the content type.
MessageBodyFlags
com.twitter.finagle.http.MediaType.HtmlUtf8
com.twitter.finagle.http.MediaType.Html
Returns an HTTP 500 Internal Server Error
response with a written body.
Returns an HTTP 500 Internal Server Error
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 500 Internal Server Error
response
Representation of the application/json
content type governed by
the includeContentTypeCharset Boolean which determines if the UTF-8 charset encoding
parameter should be included in the content type.
Representation of the application/json
content type governed by
the includeContentTypeCharset Boolean which determines if the UTF-8 charset encoding
parameter should be included in the content type.
MessageBodyFlags
com.twitter.finagle.http.MediaType.JsonUtf8
com.twitter.finagle.http.MediaType.Json
Returns an HTTP 405 Method Not Allowed
response.
Returns an HTTP 301 Moved Permanently
response with a written body
Returns an HTTP 301 Moved Permanently
response with a written body
the response body, or the information needed to render the body
Returns an HTTP 301 Moved Permanently
response.
Returns an HTTP 204 No Content
response.
Returns an HTTP 406 Not Acceptable
response with a written body.
Returns an HTTP 406 Not Acceptable
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 406 Not Acceptable
response.
Returns an HTTP 404 Not Found
response with a written String body.
Returns an HTTP 404 Not Found
response with a written String body.
the response body as a String
Returns an HTTP 404 Not Found
response with a written body.
Returns an HTTP 404 Not Found
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 404 Not Found
response
Returns an HTTP 501 Not Implemented
response
Returns an HTTP 304 Not Modified
response.
Returns an HTTP 200 OK
response with a written String body.
Returns an HTTP 200 OK
response with a written String body.
the response body as a String
Returns an HTTP 200 OK
response with a written body, potentially based on values
contained within the com.twitter.finagle.http.Request.
Returns an HTTP 200 OK
response with a written body, potentially based on values
contained within the com.twitter.finagle.http.Request.
the HTTP com.twitter.finagle.http.Request associated with this response
the response body, or the information needed to render the body
This version is useful when the body
parameter requires custom
message body rendering and values in the Request
are required for
decision making.
Returns an HTTP 200 OK
response with a written body.
Returns an HTTP 200 OK
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 200 OK
response.
Representation of the text/plain
content type governed by
the includeContentTypeCharset Boolean which determines if the UTF-8 charset encoding
parameter should be included in the content type.
Representation of the text/plain
content type governed by
the includeContentTypeCharset Boolean which determines if the UTF-8 charset encoding
parameter should be included in the content type.
MessageBodyFlags
com.twitter.finagle.http.MediaType.PlainTextUtf8
com.twitter.finagle.http.MediaType.PlainText
Returns an HTTP 412 Precondition Failed
response with a written body.
Returns an HTTP 412 Precondition Failed
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 412 Precondition Failed
response
Returns an HTTP 413 Request Entity Too Large
response with a written body.
Returns an HTTP 413 Request Entity Too Large
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 413 Request Entity Too Large
response
Returns an HTTP 503 Service Unavailable
response
Returns a response with the given com.twitter.finagle.http.Status
Returns a response with the given com.twitter.finagle.http.Status
the com.twitter.finagle.http.Status to set in the returned response
Returns a response with the given status code.
Returns a response with the given status code.
the HTTP status code to set in the returned response
Java support for streaming
Create a StreamingResponse which can be converted to a com.twitter.finagle.http.Response later.
Create a StreamingResponse which can be converted to a com.twitter.finagle.http.Response later.
The Primitive Stream type.
The type of streaming values.
The output stream.
Represents an HTTP status code.
A Map of message headers.
Returns an HTTP 307 Temporary Redirect
response.
Returns an HTTP 401 Unauthorized
response with a written body.
Returns an HTTP 401 Unauthorized
response with a written body.
the response body, or the information needed to render the body
Returns an HTTP 401 Unauthorized
response.