endpoints4s.sttp.client

Interpreters backed by sttp.

Attributes

Members list

Type members

Classlikes

Attributes

Supertypes
trait Errors
trait Responses
trait StatusCodes
trait Requests
trait Methods
trait Urls
class Object
trait Matchable
class Any
Show all
Self type
trait BuiltInErrors[R[_]] extends BuiltInErrors

Attributes

Supertypes
trait Errors
class Object
trait Matchable
class Any
Known subtypes
class Endpoints[R]
Self type
class Endpoints[R[_]](val host: String, val backend: SttpBackend[R, Any]) extends Endpoints, EndpointsWithCustomErrors[R], BuiltInErrors[R]

An interpreter for endpoints4s.algebra.Endpoints that builds a client issuing requests using a sttp’s com.softwaremill.sttp.SttpBackend, and uses algebra.BuiltInErrors to model client and server errors.

An interpreter for endpoints4s.algebra.Endpoints that builds a client issuing requests using a sttp’s com.softwaremill.sttp.SttpBackend, and uses algebra.BuiltInErrors to model client and server errors.

Doest not support streaming responses for now

Type parameters

R

The monad wrapping the response. It is defined by the backend

Value parameters

backend

The underlying backend to use

host

Base of the URL of the service that implements the endpoints (e.g. "http://foo.com")

Attributes

Supertypes
trait BuiltInErrors[R]
trait StatusCodes
trait Methods
trait Urls
trait Endpoints
trait Errors
trait Responses
trait StatusCodes
trait Requests
trait Methods
trait Urls
class Object
trait Matchable
class Any
Show all

An interpreter for endpoints4s.algebra.Endpoints that builds a client issuing requests using a sttp’s com.softwaremill.sttp.SttpBackend.

An interpreter for endpoints4s.algebra.Endpoints that builds a client issuing requests using a sttp’s com.softwaremill.sttp.SttpBackend.

Type parameters

R

The monad wrapping the response. It is defined by the backend

Attributes

Supertypes
trait StatusCodes
trait Methods
trait Urls
trait Errors
trait Responses
trait StatusCodes
trait Requests
trait Methods
trait Urls
class Object
trait Matchable
class Any
Show all
Known subtypes
class Endpoints[R]

Interpreter for endpoints4s.algebra.JsonEntitiesFromCodecs that encodes JSON request

Interpreter for endpoints4s.algebra.JsonEntitiesFromCodecs that encodes JSON request

Attributes

Supertypes
trait JsonCodecs
trait JsonEntities
trait Errors
trait Responses
trait StatusCodes
trait Requests
trait Methods
trait Urls
class Object
trait Matchable
class Any
Show all
Self type
trait Methods extends Methods

algebra.Methods interpreter that builds URLs.

algebra.Methods interpreter that builds URLs.

Attributes

Supertypes
trait Methods
class Object
trait Matchable
class Any
Known subtypes
trait MuxEndpoints[R[_]] extends Endpoints

Attributes

Supertypes
trait Endpoints
trait Errors
trait Responses
trait StatusCodes
trait Requests
trait Methods
trait Urls
class Object
trait Matchable
class Any
Show all
Self type
trait StatusCodes extends StatusCodes

Attributes

Supertypes
trait StatusCodes
class Object
trait Matchable
class Any
Known subtypes
trait Urls extends Urls

Attributes

Supertypes
trait Urls
class Object
trait Matchable
class Any
Show all
Known subtypes