package zio
- Alphabetic
- By Inheritance
- zio
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class HttpClientZioBackend extends HttpClientAsyncBackend[Task, ZioStreams, ZioStreams with WebSockets, Publisher[List[ByteBuffer]], capabilities.zio.ZioStreams.BinaryStream]
- type SttpClient = SttpBackend[Task, ZioStreams with WebSockets]
Type alias to be used as the sttp ZIO service (mainly in ZIO environment).
Value Members
- def send[T](request: Request[T, Effect[Task] with ZioStreams with WebSockets]): ZIO[SttpClient, Throwable, Response[T]]
Sends the request.
Sends the request. Only requests for which the method & URI are specified can be sent.
- returns
An effect resulting in a
Response, containing the body, deserialized as specified by the request (seeRequestT.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 ofSttpClientException. Other exceptions are kept unchanged.
- def sendR[T, R](request: Request[T, Effect[[β$0$]ZIO[R, Throwable, β$0$]] with ZioStreams with WebSockets]): ZIO[SttpClient with R, Throwable, Response[T]]
A variant of
sendwhich allows the effects that are part of the response handling specification (when using websockets or resource-safe streaming) to use anRenvironment. - object HttpClientZioBackend