Type Members
-
-
implicit
class
InvariantFunctorSyntax[A, F[_]] extends AnyRef
-
abstract
type
JsonCodec[A]
-
type
JsonRequest[A] = Codec[String, A]
-
type
JsonResponse[A] = Codec[String, A]
-
type
Method = String
-
implicit
class
PartialInvariantFunctorSyntax[A, F[_]] extends AnyRef
-
case class
Path[A](toStr: (A) ⇒ String) extends Url[A] with Product with Serializable
-
implicit
class
PathOps[A] extends AnyRef
-
type
QueryString[A] = (A) ⇒ Seq[(String, String)]
-
implicit
class
QueryStringOps[A] extends AnyRef
-
type
QueryStringParam[A] = (A) ⇒ List[String]
-
type
Request[A] = (A) ⇒ HttpRequest
-
type
RequestEntity[A] = (A, HttpRequest) ⇒ HttpRequest
-
type
RequestHeaders[A] = (A) ⇒ Seq[(String, String)]
-
type
Response[A] = (HttpResponse[String]) ⇒ Either[Throwable, A]
-
implicit
class
ResponseExtensions[A] extends AnyRef
-
type
Segment[A] = (A) ⇒ String
-
implicit
class
SemigroupalSyntax[A, F[_]] extends AnyRef
-
type
StatusCode = Int
-
Abstract Value Members
-
abstract
def
address: String
-
implicit abstract
def
jsonCodec[A](implicit arg0: JsonCodec[A]): Codec[String, A]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
BadRequest: Int
-
-
-
def
NotFound: Int
-
def
OK: Int
-
def
Options: Method
-
-
-
-
def
Unauthorized: Int
-
final
def
asInstanceOf[T0]: T0
-
-
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]
-
final
def
delete[UrlP, HeadersP, Out](url: Url[UrlP], headers: RequestHeaders[HeadersP])(implicit tuplerUH: Tupler.Aux[UrlP, HeadersP, Out]): Request[Out]
-
-
implicit
def
doubleSegment: Segment[Double]
-
implicit
def
dummyPathToUrl[A](p: Path[A]): Url[A]
-
-
-
def
emptyResponse(docs: Documentation): Response[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, Out](url: Url[UrlP], headers: RequestHeaders[HeadersP])(implicit tuplerUH: Tupler.Aux[UrlP, HeadersP, Out]): Request[Out]
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
header(name: String, docs: Documentation): (String) ⇒ Seq[(String, String)]
-
-
implicit
def
intSegment: Segment[Int]
-
final
def
isInstanceOf[T0]: Boolean
-
def
jsonRequest[A](docs: Documentation)(implicit codec: Codec[String, A]): RequestEntity[A]
-
def
jsonResponse[A](docs: Documentation)(implicit codec: Codec[String, A]): Response[A]
-
-
implicit
def
longSegment: Segment[Long]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
optHeader(name: String, docs: Documentation): (Option[String]) ⇒ Seq[(String, String)]
-
-
-
-
final
def
post[UrlP, BodyP, HeadersP, UrlAndBodyPTupled, Out](url: Url[UrlP], entity: RequestEntity[BodyP], headers: RequestHeaders[HeadersP])(implicit tuplerUB: Tupler.Aux[UrlP, BodyP, UrlAndBodyPTupled], tuplerUBH: Tupler.Aux[UrlAndBodyPTupled, HeadersP, Out]): Request[Out]
-
def
protocol: String
-
final
def
put[UrlP, BodyP, HeadersP, UrlAndBodyPTupled, Out](url: Url[UrlP], entity: RequestEntity[BodyP], headers: RequestHeaders[HeadersP])(implicit tuplerUB: Tupler.Aux[UrlP, BodyP, UrlAndBodyPTupled], tuplerUBH: Tupler.Aux[UrlAndBodyPTupled, HeadersP, Out]): Request[Out]
-
def
qs[A](name: String, docs: Documentation)(implicit value: QueryStringParam[A]): QueryString[A]
-
-
-
def
remainingSegments(name: String, docs: Documentation): Path[String]
-
-
-
-
-
def
request[U, E, H, UE, Out](method: Method, url: Url[U], entity: RequestEntity[E] = emptyRequest, headers: RequestHeaders[H] = emptyHeaders)(implicit tuplerUE: Tupler.Aux[U, E, UE], tuplerUEH: Tupler.Aux[UE, H, Out]): Request[Out]
-
def
segment[A](name: String, docs: Documentation)(implicit s: Segment[A]): Path[A]
-
-
def
staticPathSegment(segment: String): Path[Unit]
-
implicit
def
stringQueryString: QueryStringParam[String]
-
implicit
def
stringSegment: Segment[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
textRequest(docs: Option[String]): (String, HttpRequest) ⇒ HttpRequest
-
def
textResponse(docs: Documentation): Response[String]
-
def
toString(): String
-
-
def
urlWithQueryString[A, B](path: Path[A], qs: QueryString[B])(implicit tupler: Tupler[A, B]): Url[Out]
-
implicit
def
uuidQueryString: QueryStringParam[UUID]
-
implicit
def
uuidSegment: Segment[UUID]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
wheneverFound[A](inner: (HttpResponse[String]) ⇒ Either[Throwable, A], notFoundDocs: Documentation): (HttpResponse[String]) ⇒ Either[Throwable, Option[A]]
Interpreter for endpoints.algebra.JsonEntitiesFromCodec that encodes JSON requests and decodes JSON responses.