sttp.client3.asynchttpclient.zio

Members list

Concise view

Type members

Classlikes

class AsyncHttpClientZioBackend extends AsyncHttpClientBackend[Task, ZioStreams, ZioStreams & WebSockets]

Attributes

Companion:
object
Graph
Supertypes
class AsyncHttpClientBackend[Task, ZioStreams, ZioStreams & WebSockets]
trait SttpBackend[Task, ZioStreams & WebSockets]
class Object
trait Matchable
class Any
object SttpClient

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object SttpClientStubbing extends SttpClientStubbingBase[Any, ZioStreams & WebSockets]

Attributes

Graph
Supertypes
trait SttpClientStubbingBase[Any, ZioStreams & WebSockets]
class Object
trait Matchable
class Any
Self type
object stubbing

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Deprecated classlikes

Attributes

Companion:
class
Deprecated
The async-http-client project is no longer maintained
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Types

type SttpClient = Has[Service]

ZIO-environment service definition, which is an SttpBackend.

ZIO-environment service definition, which is an SttpBackend.

Attributes

Value members

Concrete methods

def send[T](request: Request[T, Effect[Task] & ZioStreams & WebSockets]): ZIO[SttpClient, Throwable, Response[T]]

Sends the request. Only requests for which the method & URI are specified can be sent.

Sends the request. Only requests for which the method & URI are specified can be sent.

Attributes

Returns:

An effect resulting in a Response, containing the body, deserialized as specified by the request (see RequestT.response), if the request was successful (1xx, 2xx, 3xx response codes), or if there was a protocol-level failure (4xx, 5xx response codes). A failed effect, if an exception occurred when connecting to the target host, writing the request or reading the response. Known exceptions are converted to one of SttpClientException. Other exceptions are kept unchanged.

def sendR[T, R](request: Request[T, Effect[[_] =>> RIO[R, _$1]] & ZioStreams & WebSockets]): ZIO[SttpClient & R, Throwable, Response[T]]

A variant of send which allows the effects that are part of the response handling specification (when using websockets or resource-safe streaming) to use an R environment.

A variant of send which allows the effects that are part of the response handling specification (when using websockets or resource-safe streaming) to use an R environment.

Attributes