Instance Constructors
-
new
Endpoints(host: String, backend: SttpBackend[R, Nothing])
Type Members
-
type
Endpoint[A, B] = (A) ⇒ R[B]
-
implicit
class
InvariantFunctorSyntax[A, F[_]] extends AnyRef
-
type
Method = (com.softwaremill.sttp.Request[_, Nothing]) ⇒ com.softwaremill.sttp.Request[_, Nothing]
-
trait
Path[A] extends Url[A]
-
implicit
class
PathOps[A] extends AnyRef
-
-
implicit
class
QueryStringOps[A] extends AnyRef
-
type
QueryStringParam[A] = (A) ⇒ String
-
type
Request[A] = (A) ⇒ SttpRequest
-
-
-
-
-
implicit
class
SemigroupalSyntax[A, F[_]] extends AnyRef
-
type
SttpRequest = com.softwaremill.sttp.Request[_, Nothing]
-
-
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
-
def
Options: Method
-
-
-
-
final
def
asInstanceOf[T0]: T0
-
val
backend: SttpBackend[R, Nothing]
-
def
chainPaths[A, B](first: Path[A], second: Path[B])(implicit tupler: Tupler[A, B]): Path[Out]
-
def
clone(): AnyRef
-
def
combineQueryStrings[A, B](first: QueryString[A], second: QueryString[B])(implicit tupler: Tupler[A, B]): QueryString[Out]
-
implicit
def
dummyPathToUrl[A](p: Path[A]): Url[A]
-
-
-
def
emptyResponse(docs: Documentation): SttpResponse[Unit]
-
def
endpoint[A, B](request: Request[A], response: Response[B], summary: Documentation, description: Documentation, tags: List[String]): Endpoint[A, B]
-
-
-
def
finalize(): Unit
-
final
def
get[UrlP, HeadersP](url: Url[UrlP], headers: RequestHeaders[HeadersP])(implicit tuplerAC: Tupler[UrlP, HeadersP]): Request[Out]
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
header(name: String, docs: Documentation): RequestHeaders[String]
-
-
implicit
lazy val
intSegment: Segment[Int]
-
final
def
isInstanceOf[T0]: Boolean
-
-
implicit
lazy val
longSegment: Segment[Long]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
optHeader(name: String, docs: Documentation): (Option[String], SttpRequest) ⇒ SttpRequest
-
def
optQs[A](name: String, docs: Documentation)(implicit value: QueryStringParam[A]): QueryString[Option[A]]
-
def
option[A](inner: Response[A], notFoundDocs: Documentation): Response[Option[A]]
-
-
final
def
post[UrlP, BodyP, HeadersP, UrlAndBodyPTupled](url: Url[UrlP], entity: RequestEntity[BodyP], headers: RequestHeaders[HeadersP])(implicit tuplerAB: Tupler.Aux[UrlP, BodyP, UrlAndBodyPTupled], tuplerABC: Tupler[UrlAndBodyPTupled, HeadersP]): Request[Out]
-
def
qs[A](name: String, docs: Documentation)(implicit value: QueryStringParam[A]): QueryString[A]
-
-
-
-
def
request[A, B, C, AB](method: Method, url: Url[A], entity: RequestEntity[B], headers: RequestHeaders[C])(implicit tuplerAB: Tupler.Aux[A, B, AB], tuplerABC: Tupler[AB, C]): Request[Out]
-
def
segment[A](name: String, docs: Documentation)(implicit s: Segment[A]): Path[A]
-
def
staticPathSegment(segment: String): Path[Unit] with Serializable
-
implicit
lazy val
stringQueryString: QueryStringParam[String]
-
implicit
lazy val
stringSegment: Segment[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
textRequest(docs: Option[String]): RequestEntity[String]
-
def
textResponse(docs: Documentation): SttpResponse[String]
-
def
toString(): String
-
-
def
urlWithQueryString[A, B](path: Path[A], qs: QueryString[B])(implicit tupler: Tupler[A, B]): Url[Out]
-
val
utf8Name: String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
An interpreter for endpoints.algebra.Endpoints that builds a client issuing requests using a sttp’s com.softwaremill.sttp.SttpBackend.
Doest not support streaming responses for now
The monad wrapping the response. It is defined by the backend