Class

com.twitter.finagle.http

RequestProxy

Related Doc: package http

Permalink

abstract class RequestProxy extends Proxy

Proxy for Request. This can be used to create a richer request class.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestProxy
  2. Proxy
  3. Request
  4. Message
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestProxy()

    Permalink

Abstract Value Members

  1. abstract def request: Request

    Permalink

    Underlying Request

    Underlying Request

    Definition Classes
    Proxy

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accept: Seq[String]

    Permalink

    Accept header

    Accept header

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

    Permalink

    Accept header media types (normalized, no parameters)

    Accept header media types (normalized, no parameters)

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

    Permalink

    Set Accept header with list of values

    Set Accept header with list of values

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

    Permalink

    Set Accept header

    Set Accept header

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

    Permalink

    Add a cookie

    Add a cookie

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

    Permalink

    Allow header

    Allow header

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

    Permalink

    Set Authorization header

    Set Authorization header

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

    Permalink

    Set Authorization header

    Set Authorization header

    Definition Classes
    Message
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def authorization: Option[String]

    Permalink

    Get Authorization header

    Get Authorization header

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

    Permalink

    Set Authorization header

    Set Authorization header

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

    Permalink

    Get Cache-Control header

    Get Cache-Control header

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

    Permalink

    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

    Permalink

    Set Cache-Control header

    Set Cache-Control header

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

    Permalink

    Get charset from Content-Type header

    Get charset from Content-Type header

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

    Permalink

    Set charset in Content-Type header.

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

    Definition Classes
    Message
  20. def chunkReader: Reader[Chunk]

    Permalink

    A read-only handle to a stream of Chunk, representing the message body.

    A read-only handle to a stream of Chunk, representing the message body. This stream is only populated on chunked messages (isChunked == true). Use content to access a payload of a fully-buffered message (isChunked == false).

    Prefer this API over reader when application needs to receive trailing headers (trailers). Trailers are transmitted in the very last chunk (chunk.isLast == true) of the stream and can be retrieved via Chunk.trailers.

    Definition Classes
    ProxyMessage
    See also

    Reader and Chunk

  21. def chunkWriter: Writer[Chunk]

    Permalink

    A write-only handle to a stream of Chunk, representing the message body.

    A write-only handle to a stream of Chunk, representing the message body. Only chunked messages (isChunked == true) use this stream as their payload, fully-buffered messages (isChunked == false) use content instead.

    Prefer this API over writer when application needs to send trailing headers (trailers). Trailers are transmitted in the very last chunk of the stream and can be populated via Chunk.last factory method.

    Definition Classes
    ProxyMessage
    See also

    Reader and Chunk

  22. final def clearContent(): Unit

    Permalink

    Clear content (set to "").

    Clear content (set to "").

    Definition Classes
    Message
  23. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def close(): Future[Unit]

    Permalink

    End the response stream.

    End the response stream.

    Definition Classes
    Message
  25. def containsParam(name: String): Boolean

    Permalink

    Check if parameter exists.

    Check if parameter exists.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  26. final def content: Buf

    Permalink

    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
    ProxyMessage
  27. final def content(content: Buf): RequestProxy.this.type

    Permalink

    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

  28. final def contentLength(value: Long): RequestProxy.this.type

    Permalink

    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
    See also

    contentLength_=(Long) for Scala users.

  29. def contentLength: Option[Long]

    Permalink

    Get the value of the Content-Length header.

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

    Definition Classes
    Message
    See also

    Long for Java users.

  30. final def contentLengthOrElse(default: Long): Long

    Permalink

    Get the value of the Content-Length header, or the provided default if it doesn't exist.

    Get the value of the Content-Length header, or the provided default if it doesn't exist.

    Definition Classes
    Message
    See also

    Option(Long) for Scala users.

  31. def contentLength_=(value: Long): Unit

    Permalink

    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
    See also

    contentLength(Long) for Java users.

  32. def contentString: String

    Permalink

    Get the content as a string.

    Get the content as a string.

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

    Permalink

    Set the content as a string.

    Set the content as a string.

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

    Permalink

    Get Content-Type header

    Get Content-Type header

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

    Permalink

    Set Content-Type header

    Set Content-Type header

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

    Permalink

    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
    ProxyMessage
    See also

    content(Buf) for Java users

  37. lazy val cookies: CookieMap

    Permalink

    Cookies.

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

    Definition Classes
    ProxyMessage
  38. def ctx: Record

    Permalink

    Arbitrary user-defined context associated with this request object.

    Arbitrary user-defined context associated with this request object. RecordSchema.Record is used here, rather than Context or similar out-of-band mechanisms, to make the connection between the request and its associated context explicit.

    Definition Classes
    ProxyRequest
  39. def date: Option[String]

    Permalink

    Get Date header

    Get Date header

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

    Permalink

    Set Date header by Date

    Set Date header by Date

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

    Permalink

    Set Date header

    Set Date header

    Definition Classes
    Message
  42. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  44. def expires: Option[String]

    Permalink

    Get Expires header

    Get Expires header

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

    Permalink

    Set Expires header by Date

    Set Expires header by Date

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

    Permalink

    Set Expires header

    Set Expires header

    Definition Classes
    Message
  47. def fileExtension: String

    Permalink

    File extension.

    File extension. Empty string if none.

    Definition Classes
    Request
    Annotations
    @BeanProperty()
  48. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. def getBooleanParam(name: String, default: Boolean): Boolean

    Permalink

    Get Boolean param.

    Get Boolean param. Returns value or default.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  50. def getBooleanParam(name: String): Boolean

    Permalink

    Get Boolean param.

    Get Boolean param. Returns value or false.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  51. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  52. def getContentString(): String

    Permalink
    Definition Classes
    Message
  53. def getCookies(): Iterator[Cookie]

    Permalink

    Get iterator over Cookies

    Get iterator over Cookies

    Definition Classes
    Message
  54. final def getInputStream(): InputStream

    Permalink

    Get InputStream for content.

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

    Definition Classes
    Message
  55. def getIntParam(name: String, default: Int): Int

    Permalink

    Get Int param.

    Get Int param. Returns value or default.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  56. def getIntParam(name: String): Int

    Permalink

    Get Int param.

    Get Int param. Returns value or 0.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  57. final def getLength(): Int

    Permalink

    Get length of content.

    Get length of content.

    Definition Classes
    Message
  58. def getLongParam(name: String, default: Long): Long

    Permalink

    Get Long param.

    Get Long param. Returns value or default.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  59. def getLongParam(name: String): Long

    Permalink

    Get Long param.

    Get Long param. Returns value or 0.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  60. def getParam(name: String, default: String): String

    Permalink

    Get parameter value.

    Get parameter value. Returns value or default.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  61. def getParam(name: String): String

    Permalink

    Get parameter value.

    Get parameter value. Returns value or null.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  62. def getParamNames(): Set[String]

    Permalink

    Get parameters names.

    Get parameters names.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  63. def getParams(): List[Entry[String, String]]

    Permalink

    Get all parameters.

    Get all parameters.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  64. def getParams(name: String): List[String]

    Permalink

    Get all values of parameter.

    Get all values of parameter. Returns list of values.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  65. final def getReader(): Reader

    Permalink

    Get Reader for content.

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

    Definition Classes
    Message
  66. def getShortParam(name: String, default: Short): Short

    Permalink

    Get Short param.

    Get Short param. Returns value or default.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  67. def getShortParam(name: String): Short

    Permalink

    Get Short param.

    Get Short param. Returns value or 0.

    Definition Classes
    Request
    See also

    params for details of which parameters are considered.

  68. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  69. def headerMap: HeaderMap

    Permalink

    HTTP headers associated with this message.

    HTTP headers associated with this message.

    Definition Classes
    ProxyMessage
    Note

    HeaderMap isn't thread-safe. Any concurrent access should be synchronized externally.

  70. final def host(value: String): RequestProxy.this.type

    Permalink

    Set the Host header

    Set the Host header

    Definition Classes
    Message
    See also

    host_=(String) for Scala users

  71. def host: Option[String]

    Permalink

    Get Host header

    Get Host header

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

    Permalink

    Set Host header

    Set Host header

    Definition Classes
    Message
    See also

    host(String) for Java users

  73. final def isChunked: Boolean

    Permalink
    Definition Classes
    ProxyMessage
  74. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  75. final def isRequest: Boolean

    Permalink
    Definition Classes
    RequestMessage
  76. def isResponse: Boolean

    Permalink
    Definition Classes
    Message
  77. def isXmlHttpRequest: Boolean

    Permalink

    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
  78. final def keepAlive: Boolean

    Permalink
    Definition Classes
    Message
  79. final def keepAlive(keepAlive: Boolean): RequestProxy.this.type

    Permalink
    Definition Classes
    Message
  80. def lastModified: Option[String]

    Permalink

    Get Last-Modified header

    Get Last-Modified header

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

    Permalink

    Set Last-Modified header by Date

    Set Last-Modified header by Date

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

    Permalink

    Set Last-Modified header

    Set Last-Modified header

    Definition Classes
    Message
  83. final def length: Int

    Permalink

    Get length of content.

    Get length of content.

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

    Permalink

    Get Location header

    Get Location header

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

    Permalink

    Set Location header

    Set Location header

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

    Permalink

    Get media-type from Content-Type header

    Get media-type from Content-Type header

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

    Permalink

    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
  88. final def method: Method

    Permalink

    Returns the HTTP method of this request.

    Returns the HTTP method of this request.

    Definition Classes
    ProxyRequest
  89. final def method(method: Method): RequestProxy.this.type

    Permalink

    Sets the HTTP method of this request to the given method.

    Sets the HTTP method of this request to the given method.

    Definition Classes
    Request
    See also

    method_=(Method) for Scala users.

  90. final def method_=(method: Method): Unit

    Permalink

    Sets the HTTP method of this request to the given method.

    Sets the HTTP method of this request to the given method.

    * @see method(Method) for Java users.

    Definition Classes
    ProxyRequest
  91. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  92. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  93. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  94. def params: ParamMap

    Permalink

    Returns a ParamMap instance, which contains both parameters provided as part of the request URI and parameters provided as part of the request body.

    Returns a ParamMap instance, which contains both parameters provided as part of the request URI and parameters provided as part of the request body.

    Definition Classes
    ProxyRequest
    Note

    Request body parameters are considered if the following criteria are true:

    1. The request is not a TRACE request. 2. The request media type is 'application/x-www-form-urlencoded' 3. The content length is greater than 0.
    import com.twitter.finagle.http.{MediaType, Method, Request}
    val request = Request(Method.Post, "/search?a=yes")
    request.mediaType = MediaType.WwwForm
    request.contentString = "a=no&b=yes&c=no"
    request.params
    // Result
    // com.twitter.finagle.http.ParamMap = ?c=no&a=no&b=yes&a=yes

    To get just query parameters from the URI, use Uri.

  95. def path: String

    Permalink

    Path from URI.

    Path from URI.

    Definition Classes
    Request
    Annotations
    @BeanProperty()
  96. final lazy val reader: Reader[Buf]

    Permalink

    A read-only handle to a stream of Buf, representing the message body.

    A read-only handle to a stream of Buf, representing the message body. This stream is only * populated on chunked messages (isChunked == true). Use content to access a payload of a fully-buffered message (isChunked == false).

    Prefer this API over chunkReader when application doesn't need access to trailing headers (trailers).

    Definition Classes
    Message
    See also

    Reader

  97. def referer: Option[String]

    Permalink

    Get Referer [sic] header

    Get Referer [sic] header

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

    Permalink

    Set Referer [sic] header

    Set Referer [sic] header

    Definition Classes
    Message
  99. def remoteAddress: InetAddress

    Permalink

    Remote InetAddress

    Remote InetAddress

    Definition Classes
    Request
    Annotations
    @BeanProperty()
  100. def remoteHost: String

    Permalink

    Remote host - a dotted quad

    Remote host - a dotted quad

    Definition Classes
    Request
    Annotations
    @BeanProperty()
  101. def remotePort: Int

    Permalink

    Remote port

    Remote port

    Definition Classes
    Request
    Annotations
    @BeanProperty()
  102. def remoteSocketAddress: InetSocketAddress

    Permalink

    The InetSocketAddress of the client or a place-holder ephemeral address for requests that have yet to be dispatched.

    The InetSocketAddress of the client or a place-holder ephemeral address for requests that have yet to be dispatched.

    Definition Classes
    ProxyRequest
  103. def removeCookie(name: String): Unit

    Permalink

    Remove a cookie

    Remove a cookie

    Definition Classes
    Message
  104. lazy val response: Response

    Permalink

    Response associated with request.

    Response associated with request.

    Definition Classes
    ProxyRequest
  105. def retryAfter: Option[String]

    Permalink

    Get Retry-After header

    Get Retry-After header

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

    Permalink

    Set Retry-After header by seconds

    Set Retry-After header by seconds

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

    Permalink

    Set Retry-After header

    Set Retry-After header

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

    Permalink

    Get Server header

    Get Server header

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

    Permalink

    Set Server header

    Set Server header

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

    Permalink

    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
    ProxyMessage
  111. final def setContentString(value: String): Unit

    Permalink

    Set the content as a string.

    Set the content as a string.

    Definition Classes
    Message
  112. def setContentType(mediaType: String, charset: String = "utf-8"): Unit

    Permalink

    Set Content-Type header by media-type and charset

    Set Content-Type header by media-type and charset

    Definition Classes
    Message
  113. def setContentTypeJson(): Unit

    Permalink

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

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

    Definition Classes
    Message
  114. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  115. def toString(): String

    Permalink
    Definition Classes
    Request → AnyRef → Any
  116. def trailers: HeaderMap

    Permalink

    Trailing headers (trailers) associated with this message.

    Trailing headers (trailers) associated with this message.

    These are only populated on fully-buffered inbound messages that were aggregated (see withStreaming(false)) from HTTP streams terminating with trailers.

    Definition Classes
    ProxyMessage
    Note

    HeaderMap isn't thread-safe. Any concurrent access should be synchronized externally.

  117. def uri: String

    Permalink

    Returns the URI of this request.

    Returns the URI of this request.

    Definition Classes
    ProxyRequest
  118. final def uri(value: String): RequestProxy.this.type

    Permalink

    Set the URI of this request.

    Set the URI of this request.

    Definition Classes
    Request
    See also

    uri_=(String) for Scala users.

  119. final def uri_=(uri: String): Unit

    Permalink

    Set the URI of this request to the given uri.

    Set the URI of this request to the given uri.

    Definition Classes
    ProxyRequest
    See also

    uri(String) for Java users.

  120. def userAgent: Option[String]

    Permalink

    Get User-Agent header

    Get User-Agent header

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

    Permalink

    Set User-Agent header

    Set User-Agent header

    Definition Classes
    Message
  122. final def version: Version

    Permalink

    Get the HTTP version

    Get the HTTP version

    Definition Classes
    ProxyMessage
  123. final def version(version: Version): RequestProxy.this.type

    Permalink

    Set the HTTP version

    Set the HTTP version

    * @see version_=(Version) for Scala users

    Definition Classes
    Message
  124. final def version_=(version: Version): Unit

    Permalink

    Set the HTTP version

    Set the HTTP version

    Definition Classes
    ProxyMessage
    See also

    version(Version) for Java users

  125. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  127. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  128. def withInputStream[T](f: (InputStream) ⇒ T): T

    Permalink

    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
  129. final def withOutputStream[T](f: (OutputStream) ⇒ T): T

    Permalink

    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] )
  130. final def withReader[T](f: (Reader) ⇒ T): T

    Permalink

    Use content as Reader.

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

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

    Permalink

    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] )
  132. final def write(bytes: Array[Byte]): Unit

    Permalink

    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] )
  133. final def write(buf: Buf): Unit

    Permalink

    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] )
  134. final def write(string: String): Unit

    Permalink

    Append string to content.

    Append string to content.

    An IllegalStateException is thrown if this message is chunked.

    Definition Classes
    Message
    Annotations
    @throws( classOf[IllegalStateException] )
  135. final lazy val writer: Writer[Buf]

    Permalink

    A write-only handle to the stream of Buf, representing the message body.

    A write-only handle to the stream of Buf, representing the message body. Only chunked messages (isChunked == true) use this stream as their payload, fully-buffered messages (isChunked == false) use content instead.

    Prefer this API over chunkWriter when application doesn't need to send trailing headers (trailers).

    Definition Classes
    Message
    See also

    Writer

  136. def wwwAuthenticate: Option[String]

    Permalink

    Get WWW-Authenticate header

    Get WWW-Authenticate header

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

    Permalink

    Set WWW-Authenticate header

    Set WWW-Authenticate header

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

    Permalink

    Get X-Forwarded-For header

    Get X-Forwarded-For header

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

    Permalink

    Set X-Forwarded-For header

    Set X-Forwarded-For header

    Definition Classes
    Message

Deprecated Value Members

  1. def getResponse(): Response

    Permalink

    Get response associated with request.

    Get response associated with request.

    Definition Classes
    Request
    Annotations
    @deprecated
    Deprecated

    (Since version 2016-12-29) Use the Response constructor functions

Inherited from Proxy

Inherited from Request

Inherited from Message

Inherited from AnyRef

Inherited from Any

Ungrouped