HttpClientFs2Backend

sttp.client4.httpclient.fs2.HttpClientFs2Backend
See theHttpClientFs2Backend companion object
class HttpClientFs2Backend[F[_]] extends HttpClientAsyncBackend[F, Fs2Streams[F], Publisher[List[ByteBuffer]], Stream[F, Byte]], WebSocketStreamBackend[F, Fs2Streams[F]]

Attributes

Companion
object
Graph
Supertypes
trait WebSocketStreamBackend[F, Fs2Streams[F]]
trait StreamBackend[F, Fs2Streams[F]]
class HttpClientAsyncBackend[F, Fs2Streams[F], Publisher[List[ByteBuffer]], Stream[F, Byte]]
trait WebSocketBackend[F]
class HttpClientBackend[F, Fs2Streams[F], Fs2Streams[F] & WebSockets, Stream[F, Byte]]
trait Backend[F]
trait GenericBackend[F, Fs2Streams[F] & WebSockets]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type R = Fs2Streams[F] & WebSockets & Effect[F]

Attributes

Inherited from:
HttpClientBackend

Value members

Concrete methods

override def send[T](request: GenericRequest[T, R]): F[Response[T]]

Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

Attributes

Definition Classes
HttpClientBackend -> GenericBackend

Inherited methods

override def close(): F[Unit]

Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

Attributes

Definition Classes
HttpClientBackend -> GenericBackend
Inherited from:
HttpClientBackend
override def sendRegular[T](request: GenericRequest[T, R]): F[Response[T]]

Attributes

Definition Classes
HttpClientAsyncBackend -> HttpClientBackend
Inherited from:
HttpClientAsyncBackend
override def sendWebSocket[T](request: GenericRequest[T, R]): F[Response[T]]

Attributes

Definition Classes
HttpClientAsyncBackend -> HttpClientBackend
Inherited from:
HttpClientAsyncBackend

Concrete fields

override val streams: Fs2Streams[F]

Implicits

Inherited implicits

implicit override val monad: MonadAsyncError[F]

A monad instance for the F effect type. Allows writing wrapper backends, which map/`flatMap`` over the return value of send.

A monad instance for the F effect type. Allows writing wrapper backends, which map/`flatMap`` over the return value of send.

Attributes

Inherited from:
HttpClientAsyncBackend