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

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.

Type parameters

A

the type of the successfully decoded response

Value parameters

url

the url

Attributes

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

Attributes

Returns

a POST request

Concrete fields