Class/Object

com.twitter.finatra.http.response.ResponseBuilder

EnrichedResponse

Related Docs: object EnrichedResponse | package ResponseBuilder

Permalink

case class EnrichedResponse(underlying: Response) extends ResponseProxy with Product with Serializable

A wrapper around a com.twitter.finagle.http.Response which exposes a builder-like API for creating responses.

underlying

the underlying com.twitter.finagle.http.Response

See also

com.twitter.finagle.http.Response

Linear Supertypes
Serializable, Serializable, Product, Equals, ResponseProxy, Proxy, Response, Message, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnrichedResponse
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ResponseProxy
  7. Proxy
  8. Response
  9. Message
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnrichedResponse(underlying: Response)

    Permalink

    underlying

    the underlying com.twitter.finagle.http.Response

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
    Definition Classes
    Message
  5. def acceptMediaTypes: Seq[String]

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Message
  15. def body(buffer: Buf): EnrichedResponse

    Permalink

    Return a response with the given com.twitter.io.Buf set as the response body.

    Return a response with the given com.twitter.io.Buf set as the response body.

    buffer

    the com.twitter.io.Buf to set as the response body.

    returns

    an EnrichedResponse with the given com.twitter.io.Buf set as the response body.

  16. def body(inputStream: InputStream): EnrichedResponse

    Permalink

    Return a response with the given InputStream written as bytes as the response body.

    Return a response with the given InputStream written as bytes as the response body.

    inputStream

    the InputStream to write as bytes as the response body.

    returns

    an EnrichedResponse with the given InputStream written as an Array[Byte] as the response body.

    Note

    this fully buffers the InputStream as an Array[Byte] and copies it as the response body. The given input stream is closed after writing the response body.

  17. def body(bodyStr: String): EnrichedResponse

    Permalink

    Return a response with the given String written as the response body.

    Return a response with the given String written as the response body.

    bodyStr

    the String to write as the response body.

    returns

    an EnrichedResponse with the given String written as the response body.

  18. def body(b: Array[Byte]): EnrichedResponse

    Permalink

    Return a response with the given Array[Byte] written as the response body.

    Return a response with the given Array[Byte] written as the response body.

    b

    bytes to write as the response body.

    returns

    an EnrichedResponse with the given Array[Byte] written as the response body.

    Note

    this uses com.twitter.io.Buf.ByteArray.Owned to set the response content.

    See also

    com.twitter.io.Buf.ByteArray.Owned

  19. def body(request: Request, any: Any): EnrichedResponse

    Permalink

    Return a response with a written body potentially based on values contained within the com.twitter.finagle.http.Request.

    Return a response with a written body potentially based on values contained within the com.twitter.finagle.http.Request.

    request

    the com.twitter.finagle.http.Request associated with this response.

    any

    the body, or the information needed to render the body.

    returns

    an EnrichedResponse with the given object written as the response body.

    Note

    This version is useful when the any parameter requires custom message body rendering and values in the Request are required for decision making.

  20. def body(any: Any): EnrichedResponse

    Permalink

    Return a response with the given object as the written response body.

    Return a response with the given object as the written response body. The object is pattern-matched to set the body and content type appropriately.

    any

    the body, or the information needed to render the body.

    returns

    an EnrichedResponse with the given object written as the response body.

  21. def cacheControl: Option[String]

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

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

    Permalink
    Definition Classes
    Message
  24. def charset: Option[String]

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

    Permalink
    Definition Classes
    Message
  26. final def clearContent(): Unit

    Permalink
    Definition Classes
    Message
  27. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Message
  29. final def content: Buf

    Permalink
    Definition Classes
    Proxy → Message
  30. final def content(content: Buf): EnrichedResponse.this.type

    Permalink
    Definition Classes
    Message
    Annotations
    @throws( ... )
  31. final def contentLength(value: Long): EnrichedResponse.this.type

    Permalink
    Definition Classes
    Message
  32. def contentLength: Option[Long]

    Permalink
    Definition Classes
    Message
  33. final def contentLengthOrElse(default: Long): Long

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

    Permalink
    Definition Classes
    Message
  35. def contentString: String

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

    Permalink
    Definition Classes
    Message
  37. def contentType(mediaType: String): EnrichedResponse

    Permalink

    Set the "Content-Type" response header field of this EnrichedResponse to the given String.

    Set the "Content-Type" response header field of this EnrichedResponse to the given String.

    mediaType

    the String to set a the header value.

    returns

    an EnrichedResponse with the "Content-Type" response header field set to given media type.

  38. def contentType: Option[String]

    Permalink
    Definition Classes
    Message
  39. def contentTypeJson(): EnrichedResponse

    Permalink

    Set the "Content-Type" header field for this EnrichedResponse to "application/json".

    Set the "Content-Type" header field for this EnrichedResponse to "application/json".

    returns

    an EnrichedResponse with a the response header "Content-Type" field set to "application/json".

  40. def contentType_=(value: String): Unit

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

    Permalink
    Definition Classes
    Proxy → Message
  42. def cookie(c: Cookie): EnrichedResponse

    Permalink

    Set the given com.twitter.finagle.http.Cookie on the returned Response.

    Set the given com.twitter.finagle.http.Cookie on the returned Response.

    c

    the com.twitter.finagle.http.Cookie to set.

    returns

    an EnrichedResponse with a created Cookie of name with value.

    See also

    HTTP Cookie

  43. def cookie(name: String, value: String): EnrichedResponse

    Permalink

    Set a com.twitter.finagle.http.Cookie with the given name and value on the returned Response.

    Set a com.twitter.finagle.http.Cookie with the given name and value on the returned Response.

    name

    com.twitter.finagle.http.Cookie name

    value

    com.twitter.finagle.http.Cookie value

    returns

    an EnrichedResponse with a created com.twitter.finagle.http.Cookie of name with value.

    See also

    HTTP Cookie Structure

  44. lazy val cookies: CookieMap

    Permalink
    Definition Classes
    Proxy → Message
  45. def ctx: Record

    Permalink
    Definition Classes
    Proxy → Response
  46. def date: Option[String]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  50. def expires: Option[String]

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

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

    Permalink
    Definition Classes
    Message
  53. def failure(request: Request, exception: DetailedNonRetryableSourcedException): EnrichedResponse

    Permalink
  54. def failure(request: Request, source: String, details: Seq[Any], message: String = ""): EnrichedResponse

    Permalink

    Helper method for returning responses that are the result of a "service-level" failure.

    Helper method for returning responses that are the result of a "service-level" failure. This is most commonly useful in an com.twitter.finatra.http.exceptions.ExceptionMapper implementation. E.g.,

    request

    the com.twitter.finagle.http.Request that triggered the failure

    source

    The named component responsible for causing this failure.

    details

    Details about this exception suitable for stats. Each element will be converted into a string. Note: Each element must have a bounded set of values (e.g. You can stat the type of a tweet as "protected" or "unprotected", but you can't include the actual tweet id "696081566032723968").

    message

    Details about this exception to be logged when this exception occurs. Typically logDetails contains the unbounded details of the exception that you are not able to stat such as an actual tweet ID (see above)

    returns

    this EnrichedResponse

    See also

    EnrichedResponse#failureClassifier

  55. def failureClassifier(classifier: ⇒ Boolean, request: Request, source: String, details: Seq[Any] = Seq(), message: String = ""): EnrichedResponse

    Permalink

    Helper method for returning responses that are the result of a "service-level" failure.

    Helper method for returning responses that are the result of a "service-level" failure. This is most commonly useful in an com.twitter.finatra.http.exceptions.ExceptionMapper implementation.

    classifier

    if the failure should be "classified", e.g. logged and stat'd accordingly

    request

    the com.twitter.finagle.http.Request that triggered the failure

    source

    The named component responsible for causing this failure.

    details

    Details about this exception suitable for stats. Each element will be converted into a string. Note: Each element must have a bounded set of values (e.g. You can stat the type of a tweet as "protected" or "unprotected", but you can't include the actual tweet id "696081566032723968").

    message

    Details about this exception to be logged when this exception occurs. Typically logDetails contains the unbounded details of the exception that you are not able to stat such as an actual tweet ID (see above)

    returns

    this EnrichedResponse

  56. def failureClassifier(classifier: ⇒ Boolean, request: Request, exception: DetailedNonRetryableSourcedException): EnrichedResponse

    Permalink
  57. def file(file: String): EnrichedResponse

    Permalink

    Return a response resolving the given file path to a java.io.File using the configured com.twitter.finatra.utils.FileResolver.

    Return a response resolving the given file path to a java.io.File using the configured com.twitter.finatra.utils.FileResolver. The resolved java.io.File is set as bytes as the response body. The file contents are fully buffered and copied to an Array[Byte] before being written as the response body.

    file

    the file String to resolve as a java.io.File to write as the response body.

    returns

    an EnrichedResponse with the given file written as an Array[Byte] as the response body.

    Note

    The resolved file is closed after writing the response body.

    See also

    com.twitter.finatra.utils.FileResolver

  58. def file(file: File): EnrichedResponse

    Permalink

    Return a response with the given java.io.File bytes as the response body.

    Return a response with the given java.io.File bytes as the response body. The file contents are fully buffered and copied to an Array[Byte] before being written as the response body.

    file

    the java.io.File to write as the response body.

    returns

    an EnrichedResponse with the given file written as an Array[Byte] as the response body.

    Note

    The given java.io.File is closed after writing the response body.

  59. def fileOrIndex(filePath: String, indexPath: String): EnrichedResponse

    Permalink

    Return the file (only if it's an existing file w/ an extension), otherwise return the index.

    Return the file (only if it's an existing file w/ an extension), otherwise return the index. Note: This functionality is useful for "single-page" UI frameworks (e.g. AngularJS) that perform client side routing.

    filePath

    the file path to resolve and return

    indexPath

    the index path to use when the file at the given filePath does not exist or does not specify an extension.

    returns

    an EnrichedResponse with the resolved file or index written as an Array[Byte] as the response body.

    See also

    String)

  60. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  61. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Message
  64. final def getInputStream(): InputStream

    Permalink
    Definition Classes
    Message
  65. final def getLength(): Int

    Permalink
    Definition Classes
    Message
  66. final def getReader(): Reader

    Permalink
    Definition Classes
    Message
  67. def header(k: String, v: Any): EnrichedResponse

    Permalink

    Return a response with the given response header key/value set.

    Return a response with the given response header key/value set.

    k

    the response header key to set.

    v

    the response header object to set. This method calls toString on this parameter to compute the String value.

    returns

    an EnrichedResponse with the given response header field to the given value.

  68. def headerMap: HeaderMap

    Permalink
    Definition Classes
    Proxy → Message
  69. def headers(entries: (String, Any)*): EnrichedResponse

    Permalink

    Return a response with the given response headers set.

    Return a response with the given response headers set.

    entries

    the sequence of Tuple2 response header key/values to set.

    returns

    an EnrichedResponse with each response header field set to its tupled value.

  70. def headers(map: Map[String, String]): EnrichedResponse

    Permalink

    Return a response with the given response headers set.

    Return a response with the given response headers set.

    map

    the map of response header key/values to set.

    returns

    an EnrichedResponse with each response header field set to its mapped value.

  71. final def host(value: String): EnrichedResponse.this.type

    Permalink
    Definition Classes
    Message
  72. def host: Option[String]

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

    Permalink
    Definition Classes
    Message
  74. def html(any: Any): EnrichedResponse

    Permalink

    Return a response with the given object written as a HTML response body.

    Return a response with the given object written as a HTML response body. Sets the "Content-Type" header field for this EnrichedResponse to "text/html". The object is pattern-matched to set the response body appropriately.

    any

    the object to write as an HTML response body.

    returns

    an EnrichedResponse with the given object written as an HTML response body.

    Note

    the content type can be overridden depending on if there is a registered MessageBodyManager for the given object type that specifies a different content type than "text/html".

  75. def html(html: String): EnrichedResponse

    Permalink

    Return a response with the given String written as a HTML response body.

    Return a response with the given String written as a HTML response body. Sets the "Content-Type" header field for this EnrichedResponse to "text/html".

    html

    the String to write as an HTML response body.

    returns

    an EnrichedResponse with the given String written as an HTML response body.

  76. final def isChunked: Boolean

    Permalink
    Definition Classes
    Proxy → Message
  77. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  78. final def isRequest: Boolean

    Permalink
    Definition Classes
    Response → Message
  79. def isResponse: Boolean

    Permalink
    Definition Classes
    Message
  80. def isXmlHttpRequest: Boolean

    Permalink
    Definition Classes
    Message
  81. def json(obj: Any): EnrichedResponse

    Permalink

    Return a JSON-formatted body from the given object.

    Return a JSON-formatted body from the given object. Note when either String or Array[Byte] data is passed the data is set as the response body unmodified, i.e., assumes the data is already JSON formatted).

    The purpose of this method is to convert an object into a JSON-formatted body via the defined ObjectMapper.

    Sets the response "Content-Type" header to "application/json"

    obj

    object to convert into a JSON-formatted body.

    returns

    an EnrichedResponse with a JSON body.

  82. def jsonError(message: String): EnrichedResponse

    Permalink

    Create a JSON-formatted ErrorsResponse response body based on the given string.

    Create a JSON-formatted ErrorsResponse response body based on the given string.

    message

    string message over which to create a JSON-formatted ErrorsResponse.

    returns

    an EnrichedResponse with a JSON-formatted ErrorsResponse response body.

    See also

    ErrorsResponse

  83. def jsonError: EnrichedResponse

    Permalink

    Create a JSON-formatted ErrorsResponse response body based on this response's current com.twitter.finagle.http.Status.

    Create a JSON-formatted ErrorsResponse response body based on this response's current com.twitter.finagle.http.Status.

    returns

    an EnrichedResponse with a JSON-formatted ErrorsResponse response body.

    See also

    com.twitter.finagle.http.Status

    ErrorsResponse

  84. final def keepAlive: Boolean

    Permalink
    Definition Classes
    Message
  85. final def keepAlive(keepAlive: Boolean): EnrichedResponse.this.type

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

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

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

    Permalink
    Definition Classes
    Message
  89. final def length: Int

    Permalink
    Definition Classes
    Message
  90. def location(uri: String): EnrichedResponse

    Permalink

    Return a response with the "Location" response header field set to the given URI value.

    Return a response with the "Location" response header field set to the given URI value.

    uri

    the String value to set as the header value.

    returns

    an EnrichedResponse with a set "Location" response header.

  91. def location(uri: Any): EnrichedResponse

    Permalink

    Return a response with the "Location" response header field set to the given URI value.

    Return a response with the "Location" response header field set to the given URI value.

    uri

    the value to set as the header value. This method calls toString on this parameter to compute the String value.

    returns

    an EnrichedResponse with a set "Location" response header.

  92. def location: Option[String]

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

    Permalink
    Definition Classes
    Message
  94. def mediaType: Option[String]

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

    Permalink
    Definition Classes
    Message
  96. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  97. def nothing: EnrichedResponse

    Permalink

    Return the currently built EnrichedResponse as-is.

    Return the currently built EnrichedResponse as-is.

    returns

    an EnrichedResponse.

  98. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  100. def plain(any: Any): EnrichedResponse

    Permalink

    Return a response with the given object written as a plaintext response body.

    Return a response with the given object written as a plaintext response body. Sets the "Content-Type" header field for this EnrichedResponse to "text/plain".

    any

    the object to write as a plaintext response body.

    returns

    an EnrichedResponse with the given object written as a plaintext response body.

  101. def reader: Reader

    Permalink
    Definition Classes
    Proxy → Message
  102. def referer: Option[String]

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

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

    Permalink
    Definition Classes
    Message
  105. val response: Response

    Permalink
    Definition Classes
    EnrichedResponse → Proxy
  106. def retryAfter: Option[String]

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

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

    Permalink
    Definition Classes
    Message
  109. def server: Option[String]

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

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

    Permalink
    Definition Classes
    Proxy → Message
  112. final def setContentString(value: String): Unit

    Permalink
    Definition Classes
    Message
  113. def setContentType(mediaType: String, charset: String): Unit

    Permalink
    Definition Classes
    Message
  114. def setContentTypeJson(): Unit

    Permalink
    Definition Classes
    Message
  115. final def status: Status

    Permalink
    Definition Classes
    Proxy → Response
  116. final def status(value: Status): EnrichedResponse.this.type

    Permalink
    Definition Classes
    Response
  117. final def statusCode(value: Int): EnrichedResponse.this.type

    Permalink
    Definition Classes
    Response
  118. final def statusCode: Int

    Permalink
    Definition Classes
    Response
  119. final def statusCode_=(value: Int): Unit

    Permalink
    Definition Classes
    Response
  120. final def status_=(value: Status): Unit

    Permalink
    Definition Classes
    Proxy → Response
  121. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  122. def toException: HttpResponseException

    Permalink
  123. def toFuture: Future[Response]

    Permalink
  124. def toFutureException[T]: Future[T]

    Permalink
  125. def toString(): String

    Permalink
    Definition Classes
    Response → AnyRef → Any
  126. val underlying: Response

    Permalink

    the underlying com.twitter.finagle.http.Response

  127. def userAgent: Option[String]

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

    Permalink
    Definition Classes
    Message
  129. final def version: Version

    Permalink
    Definition Classes
    Proxy → Message
  130. final def version(version: Version): EnrichedResponse.this.type

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

    Permalink
    Definition Classes
    Proxy → Message
  132. def view(obj: Any): EnrichedResponse

    Permalink

    Return a response with the given Mustache object data rendered and written as the response body.

    Return a response with the given Mustache object data rendered and written as the response body.

    obj

    object data to render.

    returns

    an EnrichedResponse with the given Mustache template object written as the response body.

    See also

    com.twitter.finatra.http.marshalling.mustache.MustacheBodyComponent

  133. def view(template: String, obj: Any): EnrichedResponse

    Permalink

    Return a response with the given Mustache template and object data rendered and written as the response body.

    Return a response with the given Mustache template and object data rendered and written as the response body.

    template

    the template name to render.

    obj

    the data to render.

    returns

    an EnrichedResponse with the given Mustache template object written as the response body.

    See also

    com.twitter.finatra.http.marshalling.mustache.MustacheBodyComponent

  134. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    Message
  138. final def withOutputStream[T](f: (OutputStream) ⇒ T): T

    Permalink
    Definition Classes
    Message
    Annotations
    @throws( ... )
  139. final def withReader[T](f: (Reader) ⇒ T): T

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

    Permalink
    Definition Classes
    Message
    Annotations
    @throws( ... )
  141. final def write(bytes: Array[Byte]): Unit

    Permalink
    Definition Classes
    Message
    Annotations
    @throws( ... )
  142. final def write(buf: Buf): Unit

    Permalink
    Definition Classes
    Message
    Annotations
    @throws( ... )
  143. final def write(string: String): Unit

    Permalink
    Definition Classes
    Message
    Annotations
    @throws( ... )
  144. def writer: Writer with Closable

    Permalink
    Definition Classes
    Proxy → Message
  145. def wwwAuthenticate: Option[String]

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

    Permalink
    Definition Classes
    Message
  147. def xForwardedFor: Option[String]

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

    Permalink
    Definition Classes
    Message

Deprecated Value Members

  1. def contentType(mediaType: MediaType): EnrichedResponse

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-12-12) Use contentType(mediaType: String) using a String representation of the MediaType

  2. def cookie(c: Cookie): EnrichedResponse

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2016-11-07) use cookie(Cookie)

  3. final def getStatusCode(): Int

    Permalink
    Definition Classes
    Response
    Annotations
    @deprecated
    Deprecated

    (Since version Use statusCode instead) 2017-02-17

  4. def header(k: String, v: MediaType): EnrichedResponse

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2017-12-12) Use header(key: String, v: Any) using a String representation of the MediaType

  5. final def setStatusCode(value: Int): Unit

    Permalink
    Definition Classes
    Response
    Annotations
    @deprecated
    Deprecated

    (Since version Use statusCode(Int) instead) 2017-02-17

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ResponseProxy

Inherited from Proxy

Inherited from Response

Inherited from Message

Inherited from AnyRef

Inherited from Any

Ungrouped