trait
EndpointModule[F[_]] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
binaryBody(implicit F: Sync[F]): Endpoint[F, Array[Byte]]
-
def
binaryBodyOption(implicit F: Sync[F]): Endpoint[F, Option[Array[Byte]]]
-
def
binaryBodyStream[S[_[_], _]](implicit F: Sync[F], LR: LiftReader[S, F]): Endpoint[F, S[F, Array[Byte]]]
-
def
body[A, CT](implicit arg0: ClassTag[A], D: Dispatchable[A, CT], F: Sync[F]): Endpoint[F, A]
-
def
bodyOption[A, CT](implicit arg0: ClassTag[A], F: Sync[F], D: Dispatchable[A, CT]): Endpoint[F, Option[A]]
-
def
bodyStream[S[_[_], _], A, CT <: String](implicit F: Sync[F], LR: LiftReader[S, F], A: Aux[S, F, A, CT]): Endpoint[F, S[F, A]]
-
def
classpathAsset(path: String)(implicit F: Sync[F], S: ContextShift[F]): Endpoint[F, Buf]
-
def
clone(): AnyRef
-
def
const[A](a: A)(implicit F: Applicative[F]): Endpoint[F, A]
-
def
cookie(name: String)(implicit F: Sync[F]): Endpoint[F, Cookie]
-
def
cookieOption(name: String)(implicit F: Sync[F]): Endpoint[F, Option[Cookie]]
-
-
def
empty[A]: Endpoint[F, A]
-
-
-
def
filesystemAsset(path: String)(implicit F: Sync[F], S: ContextShift[F]): Endpoint[F, Buf]
-
def
finalize(): Unit
-
def
fromFile(file: File)(implicit F: Sync[F], S: ContextShift[F]): Endpoint[F, Buf]
-
def
fromInputStream(stream: Resource[F, InputStream])(implicit F: Sync[F], S: ContextShift[F]): Endpoint[F, Buf]
-
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
-
def
header[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, A]
-
def
headerOption[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, Option[A]]
-
final
def
isInstanceOf[T0]: Boolean
-
def
jsonBody[A](implicit arg0: Json[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, A]
-
def
jsonBodyOption[A](implicit arg0: Json[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, Option[A]]
-
def
jsonBodyStream[S[_[_], _], A](implicit F: Sync[F], LR: LiftReader[S, F], A: Aux[S, F, A, Json]): Endpoint[F, S[F, A]]
-
def
lift[A](a: ⇒ A)(implicit F: Sync[F]): Endpoint[F, A]
-
def
liftAsync[A](fa: ⇒ F[A])(implicit F: Sync[F]): Endpoint[F, A]
-
def
liftOutput[A](oa: ⇒ Output[A])(implicit F: Sync[F]): Endpoint[F, A]
-
def
liftOutputAsync[A](foa: ⇒ F[Output[A]])(implicit F: Sync[F]): Endpoint[F, A]
-
def
multipartAttribute[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, A]
-
def
multipartAttributeOption[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, Option[A]]
-
def
multipartAttributes[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, List[A]]
-
def
multipartAttributesNel[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, NonEmptyList[A]]
-
def
multipartFileUpload(name: String)(implicit F: Sync[F]): Endpoint[F, FileUpload]
-
def
multipartFileUploadOption(name: String)(implicit F: Sync[F]): Endpoint[F, Option[FileUpload]]
-
def
multipartFileUploads(name: String)(implicit F: Sync[F]): Endpoint[F, List[FileUpload]]
-
def
multipartFileUploadsNel(name: String)(implicit F: Sync[F]): Endpoint[F, NonEmptyList[FileUpload]]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
options[A](e: Endpoint[F, A]): Mappable[F, A]
-
def
param[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, A]
-
def
paramOption[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, Option[A]]
-
def
params[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, List[A]]
-
def
paramsNel[A](name: String)(implicit arg0: DecodeEntity[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, NonEmptyList[A]]
-
-
implicit
def
path(s: String)(implicit F: Sync[F]): Endpoint[F, HNil]
-
def
path[A](implicit arg0: DecodePath[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, A]
-
def
pathAny(implicit F: Applicative[F]): Endpoint[F, HNil]
-
def
pathEmpty(implicit F: Applicative[F]): Endpoint[F, HNil]
-
def
paths[A](implicit arg0: DecodePath[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, List[A]]
-
-
-
def
root(implicit F: Sync[F]): Endpoint[F, Request]
-
def
stringBody(implicit F: Sync[F]): Endpoint[F, String]
-
def
stringBodyOption(implicit F: Sync[F]): Endpoint[F, Option[String]]
-
def
stringBodyStream[S[_[_], _]](implicit F: Sync[F], LR: LiftReader[S, F]): Endpoint[F, S[F, String]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
textBody[A](implicit arg0: Text[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, A]
-
def
textBodyOption[A](implicit arg0: Text[A], arg1: ClassTag[A], F: Sync[F]): Endpoint[F, Option[A]]
-
def
textBodyStream[S[_[_], _], A](implicit F: Sync[F], LR: LiftReader[S, F], A: Aux[S, F, A, Plain]): Endpoint[F, S[F, A]]
-
def
toString(): String
-
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
Enables users to construct Endpoint instances without specifying the effect type
F[_]
every time.For example, via extending the
Endpoint.Module[F[_]]
:It's also possible to instantiate an EndpointModule for a given effect and import its symbols into the score. For example:
There is a pre-defined EndpointModule for Cats'
IO
, available via the import: