com.sksamuel.scruffy

HttpResponse

case class HttpResponse(status: Int, entity: Any = scala.Array.emptyByteArray, cookies: List[Cookie] = immutable.this.Nil, headers: List[Header] = immutable.this.Nil, properties: Map[PropertyKey[Any], Any] = ...) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpResponse
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpResponse(status: Int, entity: Any = scala.Array.emptyByteArray, cookies: List[Cookie] = immutable.this.Nil, headers: List[Header] = immutable.this.Nil, properties: Map[PropertyKey[Any], Any] = ...)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def cache(maxAge: Int, cacheType: CacheType = CacheType.Public): HttpResponse

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def contentType: Option[String]

  10. val cookies: List[Cookie]

  11. def entity(e: Any, contentType: String): HttpResponse

  12. def entity(e: Any, contentType: MediaType): HttpResponse

  13. def entity(e: Any): HttpResponse

    Sets the entity type on this response.

    Sets the entity type on this response. The content type will be inferred from the instance type.

  14. val entity: Any

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def hasHeader(name: HeaderName): Boolean

  19. def hasHeader(name: String): Boolean

  20. def hasProperty(key: PropertyKey[_]): Boolean

    Returns true if the request has a property value set for the given property key

    Returns true if the request has a property value set for the given property key

    key

    the property to test for

  21. def header(name: String): Option[String]

  22. def header(name: HeaderName): Option[String]

  23. val headers: List[Header]

  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def json: HttpResponse

  26. def json(e: Any): HttpResponse

  27. def mediaType: Option[MediaType]

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. val properties: Map[PropertyKey[Any], Any]

  32. def property[T](key: PropertyKey[T]): Option[T]

    Returns the property value for the given property key.

    Returns the property value for the given property key.

    key

    the property to test for

  33. def status(code: Int): HttpResponse

  34. def status(status: HttpStatus): HttpResponse

  35. val status: Int

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def withContentType(c: String): HttpResponse

  41. def withContentType(c: MediaType): HttpResponse

  42. def withCookie(name: String, v: String, maxAge: Int): HttpResponse

  43. def withCookie(name: String, value: String): HttpResponse

  44. def withCookie(cookie: Cookie): HttpResponse

  45. def withHeader(name: HeaderName, value: Any): HttpResponse

  46. def withHeader(name: String, value: Any): HttpResponse

  47. def withProperty[T](key: PropertyKey[T], value: T): HttpResponse

    Adds a property to the request.

    Adds a property to the request. Will replace any existing value for that property.

    returns

    returns the new request with the added property

  48. def withoutCookie(name: String): HttpResponse

  49. def withoutHeader(name: HeaderName): HttpResponse

  50. def withoutHeader(name: String): HttpResponse

  51. def xml: HttpResponse

  52. def xml(e: Any): HttpResponse

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped