GenericResponseAs

sttp.client4.GenericResponseAs
See theGenericResponseAs companion object
sealed trait GenericResponseAs[+T, -R]

Generic description of how the response to a GenericRequest should be handled. To set on a request, should be wrapped with an appropriate subtype of ResponseAsDelegate, depending on the R capabilities.

Type parameters

R

The backend capabilities required by the response description. This might be Any (no requirements), Effect (the backend must support the given effect type), Streams (the ability to send and receive streaming bodies) or WebSockets (the ability to handle websocket requests).

T

Target type as which the response will be read.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ResponseAsWebSocket[F, T]
class ResponseAsWebSocketStream[S, Pipe]
class MappedResponseAs[T, T2, R]
class ResponseAsBoth[A, B, R]
class ResponseAsStream[F, T, Stream, S]
class ResponseAsStreamUnsafe[BinaryStream, S]
Show all

Members list

Value members

Abstract methods

def show: String

Concrete methods

def map[T2](f: T => T2): GenericResponseAs[T2, R]
def mapWithMetadata[T2](f: (T, ResponseMetadata) => T2): GenericResponseAs[T2, R]
def showAs(s: String): GenericResponseAs[T, R]