io.finch.request

RequestReader

object RequestReader

Convenience methods for creating new reader instances.

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

Type Members

  1. trait FromParams[L <: HList] extends AnyRef

  2. class GenericDerivation[A] extends AnyRef

  3. implicit final class HListReaderOps[L <: HList] extends AnyRef

    Implicit class that provides :: and other operations on any request reader that returns a shapeless.HList.

  4. implicit final class OptionReaderOps[A] extends AnyVal

    Implicit conversion that adds convenience methods to readers for optional values.

  5. implicit final class StringOptionReaderOps extends AnyVal

    Implicit conversion that allows to call as[A] on any RequestReader[Option[String]] to perform a type conversion based on an implicit DecodeRequest[A] which must be in scope.

  6. implicit final class StringReaderOps extends AnyVal

    Implicit conversion that allows to call as[A] on any RequestReader[String] to perform a type conversion based on an implicit DecodeRequest[A] which must be in scope.

  7. implicit class StringSeqReaderOps extends AnyRef

    Implicit conversion that allows to call as[A] on any RequestReader[Seq[String]] to perform a type conversion based on an implicit DecodeRequest[A] which must be in scope.

  8. implicit final class ValueReaderOps[B] extends AnyVal

    Implicit class that provides :: and other operations on any request reader to support building shapeless.HList request readers.

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. object FromParams

  7. def apply[A](f: (Request) ⇒ A): RequestReader[A]

    Creates a new RequestReader that reads the result from the request.

    Creates a new RequestReader that reads the result from the request.

    f

    the function to apply to the request

    returns

    a new reader that reads the result from the request

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def const[A](value: Future[A]): RequestReader[A]

    Creates a new RequestReader that always produces the specified value.

    Creates a new RequestReader that always produces the specified value. It will succeed if the given Future succeeds and fail if the Future fails.

    value

    the value the new reader should produce

    returns

    a new reader that always produces the specified value

  11. def derive[A]: GenericDerivation[A]

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

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

    Definition Classes
    AnyRef → Any
  14. def exception[A](exc: Throwable): RequestReader[A]

    Creates a new RequestReader that always fails, producing the specified exception.

    Creates a new RequestReader that always fails, producing the specified exception.

    exc

    the exception the new reader should produce

    returns

    a new reader that always fails, producing the specified exception

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. def value[A](value: A): RequestReader[A]

    Creates a new RequestReader that always succeeds, producing the specified value.

    Creates a new RequestReader that always succeeds, producing the specified value.

    value

    the value the new reader should produce

    returns

    a new reader that always succeeds, producing the specified value

  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped