sttp.client4
Members list
Packages
Type members
Classlikes
A GenericBackend which doesn't support any capabilities, and uses F
to represent side-effects.
A GenericBackend which doesn't support any capabilities, and uses F
to represent side-effects.
Attributes
- Supertypes
- Known subtypes
-
class BackendStub[F]trait SyncBackendclass SyncBackendStubobject SyncBackendStubtrait WebSocketSyncBackendclass WebSocketSyncBackendStubobject WebSocketSyncBackendStubtrait WebSocketBackend[F]class FetchBackendclass WebSocketBackendStub[F]Show all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
BackendOptions.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
trait BasicBodyPartclass ByteArrayBodyclass ByteBufferBodyclass FileBodyclass InputStreamBodyclass StringBodyclass BasicMultipartBodyobject NoBodyShow all
Attributes
- Supertypes
-
trait BodyPart[Any]trait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BasicBodytrait MultipartBody[Any]trait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
trait BasicBodyPartclass ByteArrayBodyclass ByteBufferBodyclass FileBodyclass InputStreamBodyclass StringBodyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BasicBodyParttrait BodyPart[Any]trait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BasicBodyParttrait BodyPart[Any]trait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
A wrapper around a ResponseAs to supplement it with a condition on the response metadata.
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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DefaultFutureBackend.type
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Specifies what should happen when adding a header to a request description, and a header with that name already exists. See PartialRequestBuilder.header.
Specifies what should happen when adding a header to a request description, and a header with that name already exists. See PartialRequestBuilder.header.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BasicBodyParttrait BodyPart[Any]trait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
A specific implementation of HTTP request sending logic.
A specific implementation of HTTP request sending logic.
The send method '''should not''' be used directly by client code, if possible. Instead, the Request.send, StreamRequest.send, WebSocketRequest.send or WebSocketStreamRequest.send methods (depending on the type of the request) should be used, providing a specific backend instance as a parameter.
When creating an instance of a backend, one of the Backend traits should be mixed in, reflecting the effect type and the P
capabilities: Backend, SyncBackend, WebSocketBackend, WebSocketSyncBackend, StreamBackend, WebSocketStreamBackend. This is required in order to provide a better developer experience when sending requests: the resulting type has less type parameters.
Type parameters
- F
-
The effect type used to represent side-effects, such as obtaining the response for a request. E.g. Identity for synchronous backends, scala.concurrent.Future for asynchronous backends.
- P
-
Capabilities supported by this backend, in addition to Effect. This might be
Any
(no special capabilities), subtype of sttp.capabilities.Streams (the ability to send and receive streaming bodies) or WebSockets (the ability to handle websocket requests).
Attributes
- Note
-
Backends should try to classify known HTTP-related exceptions into one of the categories specified by SttpClientException. Other exceptions are thrown unchanged.
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class FetchBackendclass BackendStub[F]class SyncBackendStubobject SyncBackendStubclass WebSocketBackendStub[F]class WebSocketSyncBackendStubobject WebSocketSyncBackendStubtrait Backend[F]trait SyncBackendtrait WebSocketSyncBackendtrait WebSocketBackend[F]Show all
A generic description of an HTTP request, along with a description of how the response body should be handled.
A generic description of an HTTP request, along with a description of how the response body should be handled.
Client code should use concrete subtypes of this trait. The Request.send, StreamRequest.send, WebSocketRequest.send or WebSocketStreamRequest.send methods should be used to send the request, providing an instance of the appropriate Backend subtype.
However, the request can aso be sent using the GenericBackend.send method, which provides a superset of the required capabilities.
Type parameters
- R
-
The backend capabilities required by the request or 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
-
The target type, to which the response body should be read.
Attributes
- Supertypes
-
trait RequestMetadatatrait HasHeadersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Request[T]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait BasicBodytrait BasicBodyPartclass ByteArrayBodyclass ByteBufferBodyclass FileBodyclass InputStreamBodyclass StringBodyclass BasicMultipartBodyobject NoBodytrait BodyPart[S]trait MultipartBody[S]class MultipartStreamBody[S]Show all
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.
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ResponseAsWebSocketUnsafe[F]object IgnoreResponseobject ResponseAsByteArrayclass ResponseAsFileclass ResponseAsInputStream[T]object ResponseAsInputStreamUnsafeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GenericResponseAs.type
Attributes
- Supertypes
- Known subtypes
-
class ResponseAsWebSocketUnsafe[F]
Attributes
- Companion
- object
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
IgnoreResponse.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BasicBodyParttrait BodyPart[Any]trait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class BasicMultipartBodyclass MultipartStreamBody[S]
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MultipartBody[S]trait GenericRequestBody[S]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
- Self type
-
NoBody.type
Describes a partial HTTP request, along with a description of how the response body should be handled. A partial request cannot be sent because the method and uri are not yet specified.
Describes a partial HTTP request, along with a description of how the response body should be handled. A partial request cannot be sent because the method and uri are not yet specified.
Type parameters
- T
-
The target type, to which the response body should be read.
Value parameters
- response
-
Description of how the response body should be handled. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it.
- tags
-
Request-specific tags which can be used by backends for logging, metrics, etc. Empty by default.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HasHeadersclass Objecttrait Matchableclass AnyShow all
The builder methods of requests or partial requests of type PR
.
The builder methods of requests or partial requests of type PR
.
Type parameters
- PR
-
The type of the request or partial request. The method and uri may not be specified yet.
- R
-
The type of request when the method and uri are specified.
Attributes
- Supertypes
- Known subtypes
- Self type
-
PR
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
-
R
Describes an HTTP request, along with a description of how the response body should be handled.
Describes an HTTP request, along with a description of how the response body should be handled.
The request can be sent using an instance of SyncBackend or Backend with the send method.
Type parameters
- T
-
The target type, to which the response body should be read.
Value parameters
- response
-
Description of how the response body should be handled. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it.
- tags
-
Request-specific tags which can be used by backends for logging, metrics, etc. Empty by default.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RequestMetadatatrait HasHeadersclass Objecttrait Matchableclass AnyShow all
The builder methods of a request. The uri and method are specified.
The builder methods of a request. The uri and method are specified.
Type parameters
- R
-
The type of request
Attributes
- Supertypes
- Known subtypes
-
class Request[T]
- Self type
-
R
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value parameters
- history
-
If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ResponseMetadatatrait HasHeadersclass Objecttrait Matchableclass AnyShow all
Describes how the response body of a Request should be handled.
Describes how the response body of a Request should be handled.
Apart from the basic cases (ignoring, reading as a byte array or file), response body descriptions can be mapped over, to support custom types. The mapping can take into account the ResponseMetadata, that is the headers and status code. Responses can also be handled depending on the response metadata. Finally, two response body descriptions can be combined (with some restrictions).
A number of as<Type>
helper methods are available as part of SttpApi and when importing sttp.client4._
.
Type parameters
- T
-
Target type as which the response will be read.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ResponseAs.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
ResponseAsByteArray.type
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.
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ResponseAs[T]
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ResponseAsStream.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class DeserializationException[DE]class HttpError[HE]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RetryWhen.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A GenericBackend which supports streams of type S
and uses F
to represent side-effects.
A GenericBackend which supports streams of type S
and uses F
to represent side-effects.
Attributes
- Supertypes
- Known subtypes
-
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BodyPart[S]trait GenericRequestBody[S]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
StreamBody.type
Describes an HTTP request, along with a description of how the response body should be handled. Either the request or response body uses non-blocking, asynchronous streams.
Describes an HTTP request, along with a description of how the response body should be handled. Either the request or response body uses non-blocking, asynchronous streams.
The request can be sent using an instance of StreamBackend with the send method.
Type parameters
- R
-
The capabilities required to send this request: a subtype of Streams, and optionally an Effect.
- T
-
The target type, to which the response body should be read. If the response body is streamed, this might be the value obtained by processing the entire stream.
Value parameters
- response
-
Description of how the response body should be handled. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it.
- tags
-
Request-specific tags which can be used by backends for logging, metrics, etc. Empty by default.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RequestMetadatatrait HasHeadersclass Objecttrait Matchableclass AnyShow all
Describes how the response body of a StreamRequest should be handled.
Describes how the response body of a StreamRequest should be handled.
The stream response can be mapped over, to support custom types. The mapping can take into account the ResponseMetadata, that is the headers and status code.
A number of asStream[Type]
helper methods are available as part of SttpApi and when importing sttp.client4._
.
Type parameters
- S
-
The type of stream, used to receive the response body bodies.
- T
-
Target type as which the response will be read.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BasicBodyParttrait BodyPart[Any]trait BasicBodytrait GenericRequestBody[Any]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
object quick
Known exceptions that might occur when using a backend. Currently this covers:
Known exceptions that might occur when using a backend. Currently this covers:
- connect exceptions: when a connection (tcp socket) can't be established to the target host
- read exceptions: when a connection has been established, but there's any kind of problem receiving or handling the response (e.g. a broken socket or a deserialization error)
In general, it's safe to assume that the request hasn't been sent in case of connect exceptions. With read exceptions, the target host might or might have not received and processed the request.
The Backend.send methods might also throw other exceptions, due to programming errors, bugs in the underlying implementations, bugs in sttp or an uncovered exception.
Value parameters
- cause
-
The original exception.
- request
-
The request, which was being sent when the exception was thrown
Attributes
- Companion
- object
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
SttpClientException.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object SttpClientException
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SttpExtensions.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object async
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object stream
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object sync
A GenericBackend which is synchronous (side effects are run directly), and doesn't support any capabilities.
A GenericBackend which is synchronous (side effects are run directly), and doesn't support any capabilities.
Attributes
- Supertypes
- Known subtypes
-
class SyncBackendStubobject SyncBackendStubtrait WebSocketSyncBackendclass WebSocketSyncBackendStubobject WebSocketSyncBackendStub
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A GenericBackend which supports web sockets and uses F
to represent side-effects.
A GenericBackend which supports web sockets and uses F
to represent side-effects.
Attributes
- Supertypes
- Known subtypes
-
class FetchBackendclass WebSocketBackendStub[F]trait WebSocketSyncBackendclass WebSocketSyncBackendStubobject WebSocketSyncBackendStubShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WebSocketImpl.type
Describes an HTTP WebSocket request.
Describes an HTTP WebSocket request.
The request can be sent using an instance of WebSocketBackend with the send method.
Type parameters
- F
-
The effect type used to process the WebSocket. Might include asynchronous computations (e.g. scala.concurrent.Future), pure effect descriptions (
IO
), or synchronous computations (Identity). - T
-
The target type, to which the response body should be read. If the WebSocket interactions are described entirely by the response description, this might be
Unit
. Otherwise, this can be a sttp.ws.WebSocket instance.
Value parameters
- response
-
Description of how the WebSocket should be handled. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it.
- tags
-
Request-specific tags which can be used by backends for logging, metrics, etc. Empty by default.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RequestMetadatatrait HasHeadersclass Objecttrait Matchableclass AnyShow all
A GenericBackend which supports websockets, streams of type S
and uses F
to represent side-effects.
A GenericBackend which supports websockets, streams of type S
and uses F
to represent side-effects.
Attributes
- Supertypes
- Known subtypes
-
Describes an HTTP WebSocket request. Either the request body, or the WebSocket handling uses non-blocking, asynchronous streams.
Describes an HTTP WebSocket request. Either the request body, or the WebSocket handling uses non-blocking, asynchronous streams.
The request can be sent using an instance of WebSocketStreamBackend with the send method.
Type parameters
- S
-
The stream capability required to send this request, a subtype of Streams.
- T
-
The target type, to which the response body should be read. If the WebSocket interactions are described entirely by the response description, this might be
Unit
. Otherwise, this can be anS
stream of frames or mapped WebSocket messages.
Value parameters
- response
-
Description of how the WebSocket should be handled. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it.
- tags
-
Request-specific tags which can be used by backends for logging, metrics, etc. Empty by default.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RequestMetadatatrait HasHeadersclass Objecttrait Matchableclass AnyShow all
A GenericBackend which is synchronous (side effects are run directly), and supports web sockets.
A GenericBackend which is synchronous (side effects are run directly), and supports web sockets.
Attributes
- Supertypes
- Known subtypes
-
class WebSocketSyncBackendStubobject WebSocketSyncBackendStub
Attributes
- Supertypes
-
trait SttpApitrait UriInterpolatortrait SttpExtensionsclass Objecttrait Matchableclass AnyShow all
- Self type
-
quick.type
Inherited classlikes
Attributes
- Inherited from:
- UriInterpolator
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Provide an implicit value of this type to serialize arbitrary classes into a request body. Backends might also provide special logic for serializer instances which they define (e.g. to handle streaming).
Provide an implicit value of this type to serialize arbitrary classes into a request body. Backends might also provide special logic for serializer instances which they define (e.g. to handle streaming).
Attributes
Value members
Inherited methods
Use both l
and r
to read the response body. Neither response specifications may use streaming or web sockets.
Use both l
and r
to read the response body. Neither response specifications may use streaming or web sockets.
Attributes
- Inherited from:
- SttpApi
Use l
to read the response body. If the raw body value which is used by l
is replayable (a file or byte array), also use r
to read the response body. Otherwise ignore r
(if the raw body is a stream).
Use l
to read the response body. If the raw body value which is used by l
is replayable (a file or byte array), also use r
to read the response body. Otherwise ignore r
(if the raw body is a stream).
Attributes
- Inherited from:
- SttpApi
Use l
to read the response body. If the raw body value which is used by l
is replayable (a file or byte array), also use r
to read the response body. Otherwise ignore r
(if the raw body is a stream).
Use l
to read the response body. If the raw body value which is used by l
is replayable (a file or byte array), also use r
to read the response body. Otherwise ignore r
(if the raw body is a stream).
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Uses the onSuccess
response specification for successful responses (2xx), and the onError
specification otherwise.
Uses the onSuccess
response specification for successful responses (2xx), and the onError
specification otherwise.
Attributes
- Inherited from:
- SttpApi
Uses the onSuccess
response specification for successful responses (2xx), and the onError
specification otherwise.
Uses the onSuccess
response specification for successful responses (2xx), and the onError
specification otherwise.
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpExtensions
Attributes
- Inherited from:
- SttpExtensions
Use the given charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Use the given charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Use the given charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Attributes
- Inherited from:
- SttpApi
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Encodes the given parameters as form data.
Encodes the given parameters as form data.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Encodes the given parameters as form data using utf-8
.
Encodes the given parameters as form data using utf-8
.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Encodes the given parameters as form data.
Encodes the given parameters as form data.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Encodes the given parameters as form data using utf-8
.
Encodes the given parameters as form data using utf-8
.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Content type will be set to text/plain
with given encoding, can be overridden later using the contentType
method.
Content type will be set to text/plain
with given encoding, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Content type will be set to text/plain
with utf-8
encoding, can be overridden later using the contentType
method.
Content type will be set to text/plain
with utf-8
encoding, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
File name will be set to the name of the file.
Attributes
- Inherited from:
- SttpExtensions
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Attributes
- Inherited from:
- SttpApi
Inherited fields
Attributes
- Inherited from:
- SttpApi
A starting request, with the following modification comparing to emptyRequest: Accept-Encoding
is set to gzip, deflate
(compression/decompression is handled automatically by the library).
A starting request, with the following modification comparing to emptyRequest: Accept-Encoding
is set to gzip, deflate
(compression/decompression is handled automatically by the library).
Reads the response body as an Either[String, String]
, where Left
is used if the status code is non-2xx, and Right
otherwise.
Attributes
- Inherited from:
- SttpApi
An empty request with no headers.
An empty request with no headers.
Reads the response body as an Either[String, String]
, where Left
is used if the status code is non-2xx, and Right
otherwise.
Attributes
- Inherited from:
- SttpApi
A starting request which always reads the response body as a string, regardless of the status code.
A starting request which always reads the response body as a string, regardless of the status code.
Attributes
- Inherited from:
- SttpApi
Implicits
Inherited implicits
Attributes
- Inherited from:
- UriInterpolator