play.api.libs.ws

WSRequest

Related Doc: package ws

trait WSRequest extends AnyRef

A WS Request builder.

Source
WS.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WSRequest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val auth: Option[(String, String, WSAuthScheme)]

    The authentication this request should use

  2. abstract val body: WSBody

    The body of this request

  3. abstract val calc: Option[WSSignatureCalculator]

    A calculator of the signature for this request

  4. abstract def execute(): Future[WSResponse]

    Execute this request

  5. abstract val followRedirects: Option[Boolean]

    Whether this request should follow redirects

  6. abstract val headers: Map[String, Seq[String]]

    The headers for this request

  7. abstract val method: String

    The method for this request

  8. abstract val proxyServer: Option[WSProxyServer]

    The proxy server this request will use

  9. abstract val queryString: Map[String, Seq[String]]

    The query string for this request

  10. abstract val requestTimeout: Option[Int]

    The timeout for the request

  11. abstract def sign(calc: WSSignatureCalculator): WSRequest

    sets the signature calculator for the request

    sets the signature calculator for the request

    calc

  12. abstract def stream(): Future[(WSResponseHeaders, Enumerator[Array[Byte]])]

    Execute this request and stream the response body in an enumerator

  13. abstract val url: String

    The base URL for this request

  14. abstract val virtualHost: Option[String]

    The virtual host this request will use

  15. abstract def withAuth(username: String, password: String, scheme: WSAuthScheme): WSRequest

    sets the authentication realm

  16. abstract def withBody(body: WSBody): WSRequest

    Sets the body for this request

  17. abstract def withFollowRedirects(follow: Boolean): WSRequest

    Sets whether redirects (301, 302) should be followed automatically

  18. abstract def withHeaders(hdrs: (String, String)*): WSRequest

    adds any number of HTTP headers

    adds any number of HTTP headers

    hdrs

  19. abstract def withMethod(method: String): WSRequest

    Sets the method for this request

  20. abstract def withProxyServer(proxyServer: WSProxyServer): WSRequest

    Sets the proxy server to use in this request

  21. abstract def withQueryString(parameters: (String, String)*): WSRequest

    adds any number of query string parameters to the

  22. abstract def withRequestTimeout(timeout: Long): WSRequest

    Sets the maximum time in milliseconds you expect the request to take.

    Sets the maximum time in milliseconds you expect the request to take. Warning: a stream consumption will be interrupted when this time is reached unless -1 is set.

  23. abstract def withVirtualHost(vh: String): WSRequest

    Sets the virtual host to use in this request

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def delete(): Future[WSResponse]

    Perform a DELETE on the request asynchronously.

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

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

    Definition Classes
    AnyRef → Any
  9. def execute(method: String): Future[WSResponse]

  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get[A](consumer: (WSResponseHeaders) ⇒ Iteratee[Array[Byte], A])(implicit ec: ExecutionContext): Future[Iteratee[Array[Byte], A]]

    performs a get

    performs a get

    consumer

    that's handling the response

  12. def get(): Future[WSResponse]

    performs a get

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

    Definition Classes
    AnyRef → Any
  14. def getStream(): Future[(WSResponseHeaders, Enumerator[Array[Byte]])]

    performs a get

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def head(): Future[WSResponse]

    Perform a HEAD on the request asynchronously.

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. def options(): Future[WSResponse]

    Perform a OPTIONS on the request asynchronously.

  22. def patch(body: File): Future[WSResponse]

    Perform a PATCH on the request asynchronously.

    Perform a PATCH on the request asynchronously. Request body won't be chunked

  23. def patch[T](body: T)(implicit wrt: Writeable[T]): Future[WSResponse]

    Perform a PATCH on the request asynchronously.

  24. def patchAndRetrieveStream[A, T](body: T)(consumer: (WSResponseHeaders) ⇒ Iteratee[Array[Byte], A])(implicit wrt: Writeable[T], ec: ExecutionContext): Future[Iteratee[Array[Byte], A]]

    performs a POST with supplied body

    performs a POST with supplied body

    consumer

    that's handling the response

  25. def post(body: File): Future[WSResponse]

    Perform a POST on the request asynchronously.

    Perform a POST on the request asynchronously. Request body won't be chunked

  26. def post[T](body: T)(implicit wrt: Writeable[T]): Future[WSResponse]

    Perform a POST on the request asynchronously.

  27. def postAndRetrieveStream[A, T](body: T)(consumer: (WSResponseHeaders) ⇒ Iteratee[Array[Byte], A])(implicit wrt: Writeable[T], ec: ExecutionContext): Future[Iteratee[Array[Byte], A]]

    performs a POST with supplied body

    performs a POST with supplied body

    consumer

    that's handling the response

  28. def put(body: File): Future[WSResponse]

    Perform a PUT on the request asynchronously.

    Perform a PUT on the request asynchronously. Request body won't be chunked

  29. def put[T](body: T)(implicit wrt: Writeable[T]): Future[WSResponse]

    Perform a PUT on the request asynchronously.

  30. def putAndRetrieveStream[A, T](body: T)(consumer: (WSResponseHeaders) ⇒ Iteratee[Array[Byte], A])(implicit wrt: Writeable[T], ec: ExecutionContext): Future[Iteratee[Array[Byte], A]]

    performs a PUT with supplied body

    performs a PUT with supplied body

    consumer

    that's handling the response

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. lazy val uri: URI

    The URI for this request

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withBody[T](body: T)(implicit wrt: Writeable[T]): WSRequest

    Sets the body for this request

Inherited from AnyRef

Inherited from Any

Ungrouped