ResponseAsDelegate
sttp.client4.ResponseAsDelegate
Describes how the response body of a request should be handled. A number of as<Type>
helper methods are available as part of SttpApi and when importing sttp.client4._
. These methods yield specific implementations of this trait, which can then be set on a Request, StreamRequest, WebSocketRequest or WebSocketStreamRequest, depending on the response type.
Type parameters
- R
-
The backend capabilities required by the response description. This might be
Any
(no requirements), sttp.capabilities.Effect (the backend must support the given effect type), sttp.capabilities.Streams (the ability to send and receive streaming bodies) or sttp.capabilities.WebSockets (the ability to handle websocket requests). - T
-
Target type as which the response will be read.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ResponseAs[T]
Members list
In this article