com.sksamuel.scruffy

HttpRequest

case class HttpRequest(entityBytes: Array[Byte], method: HttpMethod, uri: Uri, headers: Set[Header], properties: Map[PropertyKey[Any], Any], ipAddress: String, responseCookies: Map[String, String] = ..., session: Option[Session], response: Option[HttpResponse] = scala.None, marshallers: Iterable[Marshaller] = immutable.this.Nil) extends Dynamic with Product with Serializable

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

Instance Constructors

  1. new HttpRequest(entityBytes: Array[Byte], method: HttpMethod, uri: Uri, headers: Set[Header], properties: Map[PropertyKey[Any], Any], ipAddress: String, responseCookies: Map[String, String] = ..., session: Option[Session], response: Option[HttpResponse] = scala.None, marshallers: Iterable[Marshaller] = immutable.this.Nil)

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 clone(): AnyRef

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

  9. def cookie(name: String): Option[Cookie]

  10. def cookieValue(name: String): Option[String]

  11. lazy val cookies: Set[Cookie]

  12. def entityAs[F](implicit arg0: Manifest[F]): F

    Returns the entity/payload of the request, marshalled into the format identified by the current type parameter of the request.

    Returns the entity/payload of the request, marshalled into the format identified by the current type parameter of the request.

    returns

    the entity as the marshalled type.

  13. val entityBytes: Array[Byte]

  14. def entityStream: ByteArrayInputStream

    Returns the entity/payload of the request as a ByteArrayInputStream

  15. def entityString: String

    Returns the entity/payload of the request as a UTF-8 encoded String.

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

    Definition Classes
    AnyRef
  17. def etag: Option[Header]

  18. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  20. def group(name: String): String

  21. def groups: Map[String, String]

  22. def hasProperty(key: PropertyKey[Any]): 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

  23. def header(name: HeaderName): Option[Header]

    Returns the optional value for the given header name.

    Returns the optional value for the given header name.

    returns

    the value or none for the header identified by the given key.

  24. def header(name: String): Option[Header]

    Returns the optional header for the given header name.

  25. def headerValue(name: String): Option[String]

  26. def headerValue(name: HeaderName): Option[String]

  27. val headers: Set[Header]

  28. val ipAddress: String

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def isSecure: Boolean

  31. val marshallers: Iterable[Marshaller]

  32. val method: HttpMethod

  33. def methodString: String

    Returns the HTTP Method used in this request as an uppercase string, eg POST.

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

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

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

    Definition Classes
    AnyRef
  37. def param(name: String): Option[String]

  38. def params: Seq[Parameter]

  39. def params(name: String): Seq[String]

  40. def paramsAs[P <: Product](implicit arg0: Manifest[P]): P

  41. val properties: Map[PropertyKey[Any], Any]

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

  43. def referer: Option[Header]

  44. def responded: Boolean

  45. val response: Option[HttpResponse]

  46. val responseCookies: Map[String, String]

  47. def selectDynamic(name: String): String

  48. val session: Option[Session]

  49. def setHeader(name: HeaderName, value: String): HttpRequest

    Creates a new HttpRequest with the given header added.

    Creates a new HttpRequest with the given header added. If there is already a header with this value, then the header is replaced.

    returns

    the new HttpRequest with the added header.

  50. def skipped: HttpRequest

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

    Definition Classes
    AnyRef
  52. val uri: Uri

  53. def userAgent: Option[Header]

  54. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def withCookie(name: String, v: String): HttpRequest

  58. def withHeader(name: HeaderName, value: String): HttpRequest

    Adds a header to the request.

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

    returns

    returns the new request with the added header

  59. def withProperty[T](key: PropertyKey[T], value: T): HttpRequest

  60. def withResponse(response: HttpResponse): HttpRequest

  61. def withSession(session: Session): HttpRequest

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Dynamic

Inherited from AnyRef

Inherited from Any

Ungrouped