Request

object Request
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Request.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply[A](method: Method, url: String): Request[A]
def apply[A](method: Method, url: String, timeout: FiniteDuration): Request[A]
def get[A](url: String): Request[A]

Convenience method to create a GET Request[A] and try to decode the response body from String to A.

Convenience method to create a GET Request[A] and try to decode the response body from String to A.

Type parameters:
A

the type of the successfully decoded response

Value parameters:
url

the url

Returns:

a GET request

def post[A](url: String, body: Body): Request[A]

Convenience method to create a POST Request[A] and try to decode the response body from String to A.

Convenience method to create a POST Request[A] and try to decode the response body from String to A.

Type parameters:
A

the type of the successfully decoded response

Value parameters:
body

the body of the POST request

url

the url

Returns:

a POST request

Concrete fields