uk.co.bigbeeconsultants.http.request

Request

final case class Request(method: String, url: URL, body: Option[RequestBody] = scala.None, headers: Headers = ..., cookies: Option[CookieJar] = scala.None) extends Product with Serializable

Represents the requirements for an HTTP request. Immutable. Normally, this class will not be instantiated directly but via the Request object methods.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Request
  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 Request(method: String, url: URL, body: Option[RequestBody] = scala.None, headers: Headers = ..., cookies: Option[CookieJar] = scala.None)

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. def +(cookies: Option[CookieJar]): Request

    Provides the cookie jar to be used with this request.

    Provides the cookie jar to be used with this request. This replaces any previous setting.

  5. def +(cookies: CookieJar): Request

    Provides the cookie jar to be used with this request.

    Provides the cookie jar to be used with this request. This replaces any previous setting.

  6. def +(moreHeaders: Headers): Request

    Adds more headers to the collection of request headers.

  7. def +(header: Header): Request

    Adds another header to the collection of request headers.

  8. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  11. val body: Option[RequestBody]

  12. lazy val cacheKey: CacheKey

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. val cookies: Option[CookieJar]

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

    Definition Classes
    AnyRef
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. val headers: Headers

  19. lazy val href: Href

    Gets the URL split into its component parts.

  20. def isDelete: Boolean

  21. def isGet: Boolean

  22. def isHead: Boolean

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isOptions: Boolean

  25. def isPost: Boolean

  26. def isPut: Boolean

  27. def isTrace: Boolean

  28. val method: String

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

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

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

    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toShortString: String

  34. val url: URL

  35. def using(cookies: Option[CookieJar]): Request

    Provides the cookie jar to be used with this request.

    Provides the cookie jar to be used with this request. This replaces any previous setting. An alias for '+'.

  36. def using(cookies: CookieJar): Request

    Provides the cookie jar to be used with this request.

    Provides the cookie jar to be used with this request. This replaces any previous setting. An alias for '+'.

  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 withQuery(params: Map[String, String]): Request

    Creates a new instance, setting the query string to be a new one formed from a map of key/values pairs.

    Creates a new instance, setting the query string to be a new one formed from a map of key/values pairs. If the map is empty, any previous query parameters are removed.

  41. def withoutCookies: Request

    Gets the request without any cookies.

  42. def withoutHeaders: Request

    Gets the request without any headers.

Deprecated Value Members

  1. lazy val split: Href

    Annotations
    @deprecated
    Deprecated

    (Since version ) just use 'href'

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped