io.finch.request

RequiredStringBody

Related Doc: package request

object RequiredStringBody extends RequestReader[String]

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

Annotations
@deprecated
Deprecated

(Since version 0.5.0) use RequiredBody

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

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def apply[Req](req: Req)(implicit ev: (Req) ⇒ HttpRequest): Future[String]

    Reads the data from given request req.

    Reads the data from given request req.

    Req

    the request type

    req

    the request to read

    Definition Classes
    RequiredStringBodyRequestReader
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def embedFlatMap[B](fn: (String) ⇒ Future[B]): RequestReader[B] { val item: io.finch.request.items.RequestItem }

    Flat-maps this request reader to the given function A => Future[B].

    Flat-maps this request reader to the given function A => Future[B].

    Definition Classes
    RequestReader
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap[B](fn: (String) ⇒ RequestReader[B]): RequestReader[B] { val item: io.finch.request.items.MultipleItems.type }

    Flat-maps this request reader to the given function A => RequestReader[B].

    Flat-maps this request reader to the given function A => RequestReader[B].

    Definition Classes
    RequestReader
  12. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  15. val item: BodyItem.type

    A RequestItem read by this request reader.

    A RequestItem read by this request reader.

    Definition Classes
    RequiredStringBodyRequestReader
  16. def map[B](fn: (String) ⇒ B): RequestReader[B] { val item: io.finch.request.items.RequestItem }

    Maps this request reader to the given function A => B.

    Maps this request reader to the given function A => B.

    Definition Classes
    RequestReader
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. def should(rule: ValidationRule[String]): RequestReader[String]

    Validates the result of this request reader using a predefined rule.

    Validates the result of this request reader using a predefined rule. This method allows for rules to be reused across multiple request readers.

    rule

    the predefined ValidationRule that will return true if the data is valid

    returns

    a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.

    Definition Classes
    RequestReader
  21. def should(rule: String)(predicate: (String) ⇒ Boolean): RequestReader[String]

    Validates the result of this request reader using a predicate.

    Validates the result of this request reader using a predicate. The rule is used for error reporting.

    rule

    text describing the rule being validated

    predicate

    returns true if the data is valid

    returns

    a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.

    Definition Classes
    RequestReader
  22. def shouldNot(rule: ValidationRule[String]): RequestReader[String]

    Validates the result of this request reader using a predefined rule.

    Validates the result of this request reader using a predefined rule. This method allows for rules to be reused across multiple request readers.

    rule

    the predefined ValidationRule that will return false if the data is valid

    returns

    a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.

    Definition Classes
    RequestReader
  23. def shouldNot(rule: String)(predicate: (String) ⇒ Boolean): RequestReader[String]

    Validates the result of this request reader using a predicate.

    Validates the result of this request reader using a predicate. The rule is used for error reporting.

    rule

    text describing the rule being validated

    predicate

    returns false if the data is valid

    returns

    a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.

    Definition Classes
    RequestReader
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withFilter(p: (String) ⇒ Boolean): RequestReader[String]

    Applies the given filter p to this request reader.

    Applies the given filter p to this request reader.

    Definition Classes
    RequestReader
  30. def ~[B](that: RequestReader[B]): RequestReader[~[String, B]]

    Composes this request reader with the given that request reader.

    Composes this request reader with the given that request reader.

    Definition Classes
    RequestReader

Inherited from RequestReader[String]

Inherited from AnyRef

Inherited from Any

Ungrouped