Request

tyrian.http.Request$
See theRequest companion class
object Request

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Request.type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

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 apply[A](method: Method, url: String, body: Body): 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.

Attributes

A

the type of the successfully decoded response

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.

Attributes

A

the type of the successfully decoded response

body

the body of the POST request

url

the url

Returns:

a POST request

Concrete fields