io.finch

request

package request

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. request
  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 CookieNotFound(cookie: String) extends RequestReaderError with Product with Serializable

    An exception that indicates a missing cookie in the request.

    An exception that indicates a missing cookie in the request.

    cookie

    the missing cookie's name

  2. trait DecodeAnyRequest extends AnyRef

    An abstraction that is responsible for decoding the request of general type.

  3. trait DecodeMagnet[A] extends AnyRef

    A magnet that wraps a DecodeRequest.

  4. trait DecodeRequest[+A] extends AnyRef

    An abstraction that is responsible for decoding the request of type A.

  5. case class HeaderNotFound(header: String) extends RequestReaderError with Product with Serializable

    An exception that indicates missed header in the request.

    An exception that indicates missed header in the request.

    header

    the missed header name

  6. case class ParamNotFound(param: String) extends RequestReaderError with Product with Serializable

    An exception that indicates missed parameter in the request.

    An exception that indicates missed parameter in the request.

    param

    the missed parameter name

  7. trait RequestReader[A] extends AnyRef

    A request reader (a Reader Monad) reads a Future of A from the HttpRequest.

    A request reader (a Reader Monad) reads a Future of A from the HttpRequest.

    A

    the result type

  8. class RequestReaderError extends Exception

    A base exception of request reader.

  9. case class ValidationFailed(param: String, rule: String) extends RequestReaderError with Product with Serializable

    An exception that indicates a broken validation rule on the param.

    An exception that indicates a broken validation rule on the param.

    param

    the param name

    rule

    the rule description

Value Members

  1. object BodyNotFound extends RequestReaderError

    An exception that indicated a missing body in the request.

  2. object BodyNotParsed extends RequestReaderError

    An exception that indicates an error in JSON format.

  3. object ConstReader

    A const param.

  4. object EmptyReader extends RequestReader[Nothing]

    An empty RequestReader.

  5. object OptionalArrayBody extends RequestReader[Option[Array[Byte]]]

    A RequestReader that reads the request body, interpreted as a Array[Byte], into an Option.

  6. object OptionalBody

    A RequestReader that reads an optional encoded object serialized in request body and decodes it, according to an implicit decoder, into an Option.

  7. object OptionalBooleanParam

    An optional boolean param.

  8. object OptionalBooleanParams

    An optional multi-value boolean param.

  9. object OptionalCookie

    An optional cookie reader.

  10. object OptionalDoubleParam

    An optional double param.

  11. object OptionalDoubleParams

    An optional multi-value double param.

  12. object OptionalFloatParam

    An optional float param.

  13. object OptionalFloatParams

    An optional multi-value float param.

  14. object OptionalHeader

    An optional header.

  15. object OptionalIntParam

    An optional int param.

  16. object OptionalIntParams

    An optional multi-value integer param.

  17. object OptionalLongParam

    An optional long param.

  18. object OptionalLongParams

    An optional multi-value long param.

  19. object OptionalParam

    An optional string param.

  20. object OptionalParams

    An optional multi-value string param.

  21. object OptionalStringBody extends RequestReader[Option[String]]

    A RequestReader that reads the request body, interpreted as a String, into an Option.

  22. object RequiredArrayBody extends RequestReader[Array[Byte]]

    A RequestReader that reads the request body, interpreted as a Array[Byte], or throws a BodyNotFound exception.

  23. object RequiredBody

    A RequestReader that reads an encoded object serialized in request body and decodes it according to an implicit decoder.

  24. object RequiredBooleanParam

    A required boolean param.

  25. object RequiredBooleanParams

    A required multi-value boolean param.

  26. object RequiredCookie

    A Required Cookie

  27. object RequiredDoubleParam

    A required double param.

  28. object RequiredDoubleParams

    A required multi-value double param.

  29. object RequiredFloatParam

    A required float param.

  30. object RequiredFloatParams

    A required multi-value float param.

  31. object RequiredHeader

    A required header.

  32. object RequiredIntParam

    A required integer param.

  33. object RequiredIntParams

    A required multi-value integer param.

  34. object RequiredLongParam

    A required long param.

  35. object RequiredLongParams

    A required multi-value long param.

  36. object RequiredParam

    A required string param.

  37. object RequiredParams

    A required multi-value string param.

  38. object RequiredStringBody extends RequestReader[String]

    A RequestReader that reads the request body, interpreted as a String, or throws a BodyNotFound exception.

  39. object ValidationRule

    A param validation rule.

  40. implicit def magnetFromAnyDecode[A](implicit d: DecodeAnyRequest, tag: ClassTag[A]): DecodeMagnet[A]

    Creates a DecodeMagnet from DecodeAnyRequest.

  41. implicit def magnetFromDecode[A](implicit d: DecodeRequest[A]): DecodeMagnet[A]

    Creates a DecodeMagnet from DecodeRequest.

Inherited from AnyRef

Inherited from Any

Ungrouped