ConditionalResponseAs

sttp.client4.ConditionalResponseAs
case class ConditionalResponseAs[+R](condition: ResponseMetadata => Boolean, responseAs: R)

A wrapper around a ResponseAs to supplement it with a condition on the response metadata.

Used in SttpApi.fromMetadata to condition the response handler upon the response metadata: status code, headers, etc.

Type parameters

R

The type of response

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def map[R2](f: R => R2): ConditionalResponseAs[R2]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product