Trait

play.api.libs.ws

StandaloneWSRequest

Related Doc: package ws

Permalink

trait StandaloneWSRequest extends AnyRef

A WS Request builder.

Source
StandaloneWSRequest.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StandaloneWSRequest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Response <: StandaloneWSResponse

    Permalink
  2. abstract type Self <: StandaloneWSRequest { type Self <: StandaloneWSRequest.this.Self }

    Permalink

Abstract Value Members

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

    Permalink

    The authentication this request should use

  2. abstract def body: WSBody

    Permalink

    The body of this request

  3. abstract def calc: Option[WSSignatureCalculator]

    Permalink

    A calculator of the signature for this request

  4. abstract def contentType: Option[String]

    Permalink

    The content type for this request, if any is defined.

  5. abstract def delete(): Future[Response]

    Permalink

    Perform a DELETE on the request asynchronously.

  6. abstract def execute(): Future[Response]

    Permalink

    Execute this request

  7. abstract def execute(method: String): Future[Response]

    Permalink
  8. abstract def followRedirects: Option[Boolean]

    Permalink

    Whether this request should follow redirects

  9. abstract def get(): Future[Response]

    Permalink

    Performs a GET.

  10. abstract def head(): Future[Response]

    Permalink

    Perform a HEAD on the request asynchronously.

  11. abstract def headers: Map[String, Seq[String]]

    Permalink

    The headers for this request

  12. abstract def method: String

    Permalink

    The method for this request

  13. abstract def options(): Future[Response]

    Permalink

    Perform a OPTIONS on the request asynchronously.

  14. abstract def patch(body: File): Future[Response]

    Permalink
  15. abstract def patch[T](body: T)(implicit arg0: BodyWritable[T]): Future[Response]

    Permalink

  16. abstract def post(body: File): Future[Response]

    Permalink
  17. abstract def post[T](body: T)(implicit arg0: BodyWritable[T]): Future[Response]

    Permalink

  18. abstract def proxyServer: Option[WSProxyServer]

    Permalink

    The proxy server this request will use

  19. abstract def put(body: File): Future[Response]

    Permalink
  20. abstract def put[T](body: T)(implicit arg0: BodyWritable[T]): Future[Response]

    Permalink

  21. abstract def queryString: Map[String, Seq[String]]

    Permalink

    The query string for this request

  22. abstract def requestTimeout: Option[Int]

    Permalink

    The timeout for the request

  23. abstract def sign(calc: WSSignatureCalculator): Self

    Permalink

    sets the signature calculator for the request

  24. abstract def stream(): Future[StreamedResponse]

    Permalink

    Execute this request and stream the response body.

  25. abstract def uri: URI

    Permalink

    The URI for this request

  26. abstract def url: String

    Permalink

    The base URL for this request

  27. abstract def virtualHost: Option[String]

    Permalink

    The virtual host this request will use

  28. abstract def withAuth(username: String, password: String, scheme: WSAuthScheme): Self

    Permalink

    sets the authentication realm

  29. abstract def withBody[T](body: T)(implicit arg0: BodyWritable[T]): Self

    Permalink

    Sets the body for this request.

  30. abstract def withBody(file: File): Self

    Permalink

    Sets the body for this request

  31. abstract def withBody(body: WSBody): Self

    Permalink

    Sets the body for this request

  32. abstract def withFollowRedirects(follow: Boolean): Self

    Permalink

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

  33. abstract def withHeaders(hdrs: (String, String)*): Self

    Permalink

    adds any number of HTTP headers

  34. abstract def withMethod(method: String): Self

    Permalink

    Sets the method for this request

  35. abstract def withProxyServer(proxyServer: WSProxyServer): Self

    Permalink

    Sets the proxy server to use in this request

  36. abstract def withQueryString(parameters: (String, String)*): Self

    Permalink

    adds any number of query string parameters to this request

  37. abstract def withRequestFilter(filter: WSRequestFilter): Self

    Permalink

    Adds a filter to the request that can transform the request for subsequent filters.

  38. abstract def withRequestTimeout(timeout: Duration): Self

    Permalink

    Sets the maximum time you expect the request to take.

    Sets the maximum time you expect the request to take. Use Duration.Inf to set an infinite request timeout. Warning: a stream consumption will be interrupted when this time is reached unless Duration.Inf is set.

  39. abstract def withVirtualHost(vh: String): Self

    Permalink

    Sets the virtual host to use in this request

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped