FollowRedirectsBackend

sttp.client3.FollowRedirectsBackend
See theFollowRedirectsBackend companion object
class FollowRedirectsBackend[F[_], P](delegate: SttpBackend[F, P], contentHeaders: Set[String], sensitiveHeaders: Set[String], transformUri: Uri => Uri) extends DelegateSttpBackend[F, P]

Value parameters

transformUri

Defines if and how Uri s from the Location header should be transformed. For example, this enables changing the encoding of host, path, query and fragment segments to be more strict or relaxed.

Attributes

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

Members list

Type members

Types

type PE = P & Effect[F]

Value members

Constructors

def this(delegate: SttpBackend[F, P], contentHeaders: Set[String], sensitiveHeaders: Set[String])

Concrete methods

override def send[T, R >: PE](request: 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

Inherited methods

override def close(): F[Unit]

Attributes

Definition Classes
Inherited from:
DelegateSttpBackend

Implicits

Inherited implicits

implicit override def 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

Definition Classes
Inherited from:
DelegateSttpBackend