Http4sBackend

sttp.client3.http4s.Http4sBackend
See theHttp4sBackend companion object
class Http4sBackend[F[_]](client: Client[F], customizeRequest: Request[F] => Request[F], customEncodingHandler: EncodingHandler[F])(implicit evidence$1: Async[F]) extends SttpBackend[F, Fs2Streams[F]]

Attributes

Companion
object
Graph
Supertypes
trait SttpBackend[F, Fs2Streams[F]]
class Object
trait Matchable
class Any

Members list

Type members

Types

type PE = Fs2Streams[F] & Effect[F]

Value members

Concrete methods

override def close(): F[Unit]

Attributes

Definition Classes
SttpBackend
override def send[T, R >: PE](r: Request[T, R]): F[Response[T]]

Type parameters

R

The capabilities required by the request. This must be a subset of the the capabilities supported by the backend (which always includes Effect[F]).

Attributes

Definition Classes
SttpBackend

Implicits

Implicits

implicit override val responseMonad: MonadError[F]

A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.

A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.

Attributes