c

com.twitter.finagle.http

ResponseProxy

abstract class ResponseProxy extends Response

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseProxy
  2. Response
  3. Message
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResponseProxy()

Abstract Value Members

  1. abstract def response: Response

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accept: Seq[String]

    Accept header

    Accept header

    Definition Classes
    Message
  5. def acceptMediaTypes: Seq[String]

    Accept header media types (normalized, no parameters)

    Accept header media types (normalized, no parameters)

    Definition Classes
    Message
  6. def accept_=(values: Iterable[String]): Unit

    Set Accept header with list of values

    Set Accept header with list of values

    Definition Classes
    Message
  7. def accept_=(value: String): Unit

    Set Accept header

    Set Accept header

    Definition Classes
    Message
  8. def addCookie(cookie: Cookie): Unit

    Add a cookie

    Add a cookie

    Definition Classes
    Message
  9. def allow: Option[String]

    Allow header

    Allow header

    Definition Classes
    Message
  10. def allow_=(values: Iterable[Method]): Unit

    Set Authorization header

    Set Authorization header

    Definition Classes
    Message
  11. def allow_=(value: String): Unit

    Set Authorization header

    Set Authorization header

    Definition Classes
    Message
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def authorization: Option[String]

    Get Authorization header

    Get Authorization header

    Definition Classes
    Message
  14. def authorization_=(value: String): Unit

    Set Authorization header

    Set Authorization header

    Definition Classes
    Message
  15. def cacheControl: Option[String]

    Get Cache-Control header

    Get Cache-Control header

    Definition Classes
    Message
  16. def cacheControl_=(maxAge: Duration): Unit

    Set Cache-Control header with a max-age (and must-revalidate).

    Set Cache-Control header with a max-age (and must-revalidate).

    Definition Classes
    Message
  17. def cacheControl_=(value: String): Unit

    Set Cache-Control header

    Set Cache-Control header

    Definition Classes
    Message
  18. def charset: Option[String]

    Get charset from Content-Type header

    Get charset from Content-Type header

    Definition Classes
    Message
  19. def charset_=(value: String): Unit

    Set charset in Content-Type header.

    Set charset in Content-Type header. This does not change the content.

    Definition Classes
    Message
  20. def clearContent(): Unit

    Clear content (set to "").

    Clear content (set to "").

    Definition Classes
    Message
  21. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def close(): Future[Unit]

    End the response stream.

    End the response stream.

    Definition Classes
    Message
  23. final def content(content: Buf): ResponseProxy.this.type

    Set the content of this Message.

    Set the content of this Message.

    Any existing content is discarded. If this Message is set to chunked, an IllegalStateException is thrown.

    Definition Classes
    Message
    Annotations
    @throws( ... )
    See also

    content_=(Buf) for Scala users

  24. def content: Buf

    Retrieve the current content of this Message.

    Retrieve the current content of this Message.

    If this message is chunked, the resulting Buf will always be empty.

    Definition Classes
    Message
  25. def contentLength: Option[Long]

    Get Content-Length header.

    Get Content-Length header. Use length to get the length of actual content.

    Definition Classes
    Message
  26. def contentLength_=(value: Long): Unit

    Set Content-Length header.

    Set Content-Length header. Normally, this is automatically set by the Codec, but this method allows you to override that.

    Definition Classes
    Message
  27. def contentString: String

    Get the content as a string.

    Get the content as a string.

    Definition Classes
    Message
  28. def contentString_=(value: String): Unit

    Set the content as a string.

    Set the content as a string.

    Definition Classes
    Message
  29. def contentType: Option[String]

    Get Content-Type header

    Get Content-Type header

    Definition Classes
    Message
  30. def contentType_=(value: String): Unit

    Set Content-Type header

    Set Content-Type header

    Definition Classes
    Message
  31. def content_=(content: Buf): Unit

    Set the content of this Message.

    Set the content of this Message.

    Any existing content is discarded. If this Message is set to chunked, an IllegalStateException is thrown.

    Definition Classes
    Message
    Annotations
    @throws( ... )
    See also

    content(Buf) for Java users

  32. lazy val cookies: CookieMap

    Cookies.

    Cookies. In a request, this uses the Cookie headers. In a response, it uses the Set-Cookie headers.

    Definition Classes
    Message
  33. val ctx: Record

    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.

    Definition Classes
    Response
  34. def date: Option[String]

    Get Date header

    Get Date header

    Definition Classes
    Message
  35. def date_=(value: Date): Unit

    Set Date header by Date

    Set Date header by Date

    Definition Classes
    Message
  36. def date_=(value: String): Unit

    Set Date header

    Set Date header

    Definition Classes
    Message
  37. def encodeString(): String

    Encode as an HTTP message

    Encode as an HTTP message

    Definition Classes
    ResponseProxyResponse
  38. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  40. def expires: Option[String]

    Get Expires header

    Get Expires header

    Definition Classes
    Message
  41. def expires_=(value: Date): Unit

    Set Expires header by Date

    Set Expires header by Date

    Definition Classes
    Message
  42. def expires_=(value: String): Unit

    Set Expires header

    Set Expires header

    Definition Classes
    Message
  43. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  44. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  45. def getContentString(): String
    Definition Classes
    Message
  46. def getCookies(): Iterator[Cookie]

    Get iterator over Cookies

    Get iterator over Cookies

    Definition Classes
    Message
  47. def getInputStream(): InputStream

    Get InputStream for content.

    Get InputStream for content. Caller must close. (Java interface. Scala users should use withInputStream.)

    Definition Classes
    Message
  48. def getLength(): Int
    Definition Classes
    Message
  49. def getReader(): Reader

    Get Reader for content.

    Get Reader for content. (Java interface. Scala users should use withReader.)

    Definition Classes
    Message
  50. def getStatusCode(): Int
    Definition Classes
    ResponseProxyResponse
  51. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  52. lazy val headerMap: HeaderMap
    Definition Classes
    Message
  53. def host: Option[String]

    Get Host header

    Get Host header

    Definition Classes
    Message
  54. def host_=(value: String): Unit

    Set Host header

    Set Host header

    Definition Classes
    Message
  55. def httpResponse: HttpResponse
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    ResponseProxyResponse
  56. def isChunked: Boolean
    Definition Classes
    Message
  57. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  58. def isRequest: Boolean
    Definition Classes
    ResponseProxyResponseMessage
  59. def isResponse: Boolean
    Definition Classes
    Message
  60. def isXmlHttpRequest: Boolean

    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.)

    Definition Classes
    Message
  61. def lastModified: Option[String]

    Get Last-Modified header

    Get Last-Modified header

    Definition Classes
    Message
  62. def lastModified_=(value: Date): Unit

    Set Last-Modified header by Date

    Set Last-Modified header by Date

    Definition Classes
    Message
  63. def lastModified_=(value: String): Unit

    Set Last-Modified header

    Set Last-Modified header

    Definition Classes
    Message
  64. def length: Int

    Get length of content.

    Get length of content.

    Definition Classes
    Message
  65. def location: Option[String]

    Get Location header

    Get Location header

    Definition Classes
    Message
  66. def location_=(value: String): Unit

    Set Location header

    Set Location header

    Definition Classes
    Message
  67. def mediaType: Option[String]

    Get media-type from Content-Type header

    Get media-type from Content-Type header

    Definition Classes
    Message
  68. def mediaType_=(value: String): Unit

    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.

    Definition Classes
    Message
  69. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  70. final def notify(): Unit
    Definition Classes
    AnyRef
  71. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  72. def reader: Reader

    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.

    Definition Classes
    Message
  73. def referer: Option[String]

    Get Referer [sic] header

    Get Referer [sic] header

    Definition Classes
    Message
  74. def referer_=(value: String): Unit

    Set Referer [sic] header

    Set Referer [sic] header

    Definition Classes
    Message
  75. def removeCookie(name: String): Unit

    Remove a cookie

    Remove a cookie

    Definition Classes
    Message
  76. def retryAfter: Option[String]

    Get Retry-After header

    Get Retry-After header

    Definition Classes
    Message
  77. def retryAfter_=(value: Long): Unit

    Set Retry-After header by seconds

    Set Retry-After header by seconds

    Definition Classes
    Message
  78. def retryAfter_=(value: String): Unit

    Set Retry-After header

    Set Retry-After header

    Definition Classes
    Message
  79. def server: Option[String]

    Get Server header

    Get Server header

    Definition Classes
    Message
  80. def server_=(value: String): Unit

    Set Server header

    Set Server header

    Definition Classes
    Message
  81. def setChunked(chunked: Boolean): Unit

    Manipulate the Message content mode.

    Manipulate the Message content mode.

    If chunked is true, any existing content will be discarded and further attempts to manipulate the synchronous content will result in an IllegalStateException.

    If chunked is false, the synchronous content methods will become available and the Reader/Writer of the message will be ignored by finagle.

    Definition Classes
    Message
  82. def setContentString(value: String): Unit
    Definition Classes
    Message
  83. def setContentType(mediaType: String, charset: String = "utf-8"): Unit

    Set Content-Type header by media-type and charset

    Set Content-Type header by media-type and charset

    Definition Classes
    Message
  84. def setContentTypeJson(): Unit

    Set Content-Type header to application/json;charset=utf-8

    Set Content-Type header to application/json;charset=utf-8

    Definition Classes
    Message
  85. def setStatusCode(value: Int): Unit
    Definition Classes
    ResponseProxyResponse
  86. def status: Status
    Definition Classes
    ResponseProxyResponse
  87. def statusCode: Int
    Definition Classes
    ResponseProxyResponse
  88. def statusCode_=(value: Int): Unit
    Definition Classes
    ResponseProxyResponse
  89. def status_=(value: Status): Unit
    Definition Classes
    ResponseProxyResponse
  90. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  91. def toString(): String
    Definition Classes
    Response → AnyRef → Any
  92. def userAgent: Option[String]

    Get User-Agent header

    Get User-Agent header

    Definition Classes
    Message
  93. def userAgent_=(value: String): Unit

    Set User-Agent header

    Set User-Agent header

    Definition Classes
    Message
  94. def version: Version
    Definition Classes
    Message
  95. def version_=(version: Version): Unit
    Definition Classes
    Message
  96. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  98. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. def withInputStream[T](f: (InputStream) ⇒ T): T

    Use content as InputStream.

    Use content as InputStream. The underlying channel buffer's reader index is advanced. (Scala interface. Java users can use getInputStream().)

    Definition Classes
    Message
  100. def withOutputStream[T](f: (OutputStream) ⇒ T): T

    Append content via an OutputStream.

    Append content via an OutputStream.

    An IllegalStateException is thrown if this message is chunked.

    Definition Classes
    Message
    Annotations
    @throws( classOf[IllegalStateException] )
  101. def withReader[T](f: (Reader) ⇒ T): T

    Use content as Reader.

    Use content as Reader. (Scala interface. Java usrs can use getReader().)

    Definition Classes
    Message
  102. def withWriter[T](f: (Writer) ⇒ T): T

    Append content via a Writer.

    Append content via a Writer.

    An IllegalStateException is thrown if this message is chunked.

    Definition Classes
    Message
    Annotations
    @throws( classOf[IllegalStateException] )
  103. def write(bytes: Array[Byte]): Unit

    Append bytes to content.

    Append bytes to content.

    This method makes a defensive copy of the provided byte array. This can be avoided by wrapping the byte array via Buf.ByteArray.Owned and using the write(Buf) method.

    An IllegalStateException is thrown if this message is chunked.

    Definition Classes
    Message
    Annotations
    @throws( classOf[IllegalStateException] )
  104. def write(buf: Buf): Unit

    Append a Buf to content.

    Append a Buf to content.

    An IllegalStateException is thrown if this message is chunked.

    Definition Classes
    Message
    Annotations
    @throws( classOf[IllegalStateException] )
  105. def write(string: String): Unit

    Append string to content.

    Append string to content.

    An IllegalStateException is thrown if this message is chunked.

    Definition Classes
    Message
    Annotations
    @throws( classOf[IllegalStateException] )
  106. def writer: Writer with Closable

    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.

    Definition Classes
    Message
  107. def wwwAuthenticate: Option[String]

    Get WWW-Authenticate header

    Get WWW-Authenticate header

    Definition Classes
    Message
  108. def wwwAuthenticate_=(value: String): Unit

    Set WWW-Authenticate header

    Set WWW-Authenticate header

    Definition Classes
    Message
  109. def xForwardedFor: Option[String]

    Get X-Forwarded-For header

    Get X-Forwarded-For header

    Definition Classes
    Message
  110. def xForwardedFor_=(value: String): Unit

    Set X-Forwarded-For header

    Set X-Forwarded-For header

    Definition Classes
    Message

Deprecated Value Members

  1. def getContent(): ChannelBuffer
    Attributes
    protected
    Definition Classes
    Message
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-01-23) Use content instead

  2. def getHttpResponse(): HttpResponse
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    Response
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-01-26) Going away as part of the Netty 4 transition

  3. def getStatus(): HttpResponseStatus
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    Response
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-01-26) Going away as part of the Netty 4 transition

  4. def headers(): HttpHeaders
    Attributes
    protected
    Definition Classes
    Message
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-01-24) Use headerMap instead

  5. def httpMessage: HttpMessage
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    ResponseMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-01-26) Going away as part of the Netty 4 transition

  6. def setContent(content: ChannelBuffer): Unit
    Attributes
    protected
    Definition Classes
    Message
    Annotations
    @deprecated @throws( ... )
    Deprecated

    (Since version 2017-01-23) Use content(Buf) instead

  7. def setStatus(status: HttpResponseStatus): Unit
    Attributes
    protected[com.twitter.finagle]
    Definition Classes
    Response
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-01-26) Going away as part of the Netty 4 transition

Inherited from Response

Inherited from Message

Inherited from AnyRef

Inherited from Any

Ungrouped