io.finch

Endpoints

trait Endpoints extends AnyRef

A collection of Endpoint combinators.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Endpoints
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class BasicAuth(user: String, password: String, err: Map[String, String] = ...) extends Product with Serializable

    Maintains Basic HTTP Auth for an arbitrary Endpoint.

  2. type Endpoint0 = Endpoint[HNil]

  3. type Endpoint2[A, B] = Endpoint[::[A, ::[B, HNil]]]

  4. type Endpoint3[A, B, C] = Endpoint[::[A, ::[B, ::[C, HNil]]]]

  5. case class Extractor[A](name: String, f: (String) ⇒ Option[A]) extends Endpoint[A] with Product with Serializable

    An universal extractor that extracts some value of type A if it's possible to fetch the value from the string.

  6. case class TailExtractor[A](name: String, f: (String) ⇒ Option[A]) extends Endpoint[Seq[A]] with Product with Serializable

    An extractor that extracts a value of type Seq[A] from the tail of the route.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. object * extends Endpoint[HNil]

    An Endpoint that skips all path parts.

  5. object / extends Endpoint[HNil]

    An identity Endpoint.

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. object boolean extends Extractor[Boolean]

    An Endpoint that extract a boolean value from the route.

  10. implicit def booleanToMatcher(b: Boolean): Endpoint0

  11. object booleans extends TailExtractor[Boolean]

    An Endpoint that extract a boolean tail from the route.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def connect[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is CONNECT and the underlying router succeeds on it.

  14. def delete[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is DELETE and the underlying router succeeds on it.

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def get[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is GET and the underlying router succeeds on it.

  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def head[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is HEAD and the underlying router succeeds on it.

  22. object int extends Extractor[Int]

    An Endpoint that extract an integer value from the route.

  23. implicit def intToMatcher(i: Int): Endpoint0

  24. object ints extends TailExtractor[Int]

    An Endpoint that extract an integer tail from the route.

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. object long extends Extractor[Long]

    An Endpoint that extract a long value from the route.

  27. object longs extends TailExtractor[Long]

    An Endpoint that extract a long tail from the route.

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def options[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is OPTIONS and the underlying router succeeds on it.

  32. def patch[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is PATCH and the underlying router succeeds on it.

  33. def post[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is POST and the underlying router succeeds on it.

  34. def put[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is PUT and the underlying router succeeds on it.

  35. object string extends Extractor[String]

    An Endpoint that extract a string value from the route.

  36. implicit def stringToMatcher(s: String): Endpoint0

  37. object strings extends TailExtractor[String]

    An Endpoint that extract a string tail from the route.

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def trace[A]: (Endpoint[A]) ⇒ Endpoint[A]

    A combinator that wraps the given Endpoint with additional check of the HTTP method.

    A combinator that wraps the given Endpoint with additional check of the HTTP method. The resulting Endpoint succeeds on the request only if its method is TRACE and the underlying router succeeds on it.

  41. object uuid extends Extractor[UUID]

    An Endpoint that extract an UUID value from the route.

  42. object uuids extends TailExtractor[UUID]

    An Endpoint that extract an UUID tail from the route.

  43. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. object Connect extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method connect: Endpoint[A] => Endpoint[A] instead

  2. object Delete extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method delete: Endpoint[A] => Endpoint[A] instead

  3. object Get extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method get: Endpoint[A] => Endpoint[A] instead

  4. object Head extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method head: Endpoint[A] => Endpoint[A] instead

  5. object Options extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method options: Endpoint[A] => Endpoint[A] instead

  6. object Patch extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method patch: Endpoint[A] => Endpoint[A] instead

  7. object Post extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method post: Endpoint[A] => Endpoint[A] instead

  8. object Put extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method put: Endpoint[A] => Endpoint[A] instead

  9. object Trace extends MethodMatcher

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use method trace: Endpoint[A] => Endpoint[A] instead

  10. def basicAuth[A](user: String, password: String)(e: Endpoint[A]): Endpoint[A]

    A combinator that wraps the given Endpoint with Basic HTTP Auth, configured with credentials user and password.

    A combinator that wraps the given Endpoint with Basic HTTP Auth, configured with credentials user and password.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.1) Use BasicAuth instead

Inherited from AnyRef

Inherited from Any

Ungrouped