dispatch.classic

HandlerVerbs

class HandlerVerbs extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HandlerVerbs
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HandlerVerbs (request: Request)

Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def <> [T] (block: (Elem) ⇒ T): Handler[T]

    Process response as XML document in block

  5. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  7. def >+ [A, B] (block: (Request) ⇒ (Handler[A], Handler[B])): Handler[(A, B)]

    Split into two request handlers, return results of each in tuple.

  8. def >+> [T] (block: (Request) ⇒ Handler[Handler[T]]): Handler[T]

    Chain two request handlers.

    Chain two request handlers. First handler returns a second, which may use values obtained by the first. Both are run on the same request.

  9. def >- [T] (block: (String) ⇒ T): Handler[T]

    Handle some non-huge response body as a String, in a block.

    Handle some non-huge response body as a String, in a block. Charset note in >~ applies.

  10. def >:+ [T] (block: (Map[String, Seq[String]], Request) ⇒ Handler[T]): Handler[T]

    Combination header and request chaining verb.

    Combination header and request chaining verb. Headers are converted to lowercase for case insensitive access.

  11. def >:> [T] (block: (Map[String, Set[String]]) ⇒ T): Handler[T]

    Process header as Map in block.

    Process header as Map in block. Map returns empty set for header name misses.

  12. def >> [T] (block: (InputStream) ⇒ T): Handler[T]

    Handle InputStream in block, handle gzip if so encoded.

  13. def >> [T] (block: (InputStream, String) ⇒ T): Handler[T]

    Handle InputStream in block, handle gzip if so encoded.

    Handle InputStream in block, handle gzip if so encoded. Passes on any charset header value from response, otherwise the default charset. (See Request#>\)

  14. def >>> [OS <: OutputStream] (out: OS): Handler[OS]

    Write to the given OutputStream.

  15. def >>~ [T] (block: (InputStreamReader) ⇒ T): Handler[T]

    Handle response as a java.

    Handle response as a java.io.Reader

  16. def >| : Handler[Unit]

    Ignore response body.

  17. def >~ [T] (block: (Source) ⇒ T): Handler[T]

    Handle response as a scala.

    Handle response as a scala.io.Source, in a block. Note that Source may fail if the character set it receives (determined in >>) is incorrect. To process resources that have incorrect charset headers, use >> ((InputStream, String) => T).

  18. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  19. def as_source : Handler[Source]

    Return response as a scala.

    Return response as a scala.io.Source. Charset note in >~ applies.

  20. def as_str : Handler[String]

    Return some non-huge response as a String.

    Return some non-huge response as a String. Charset note in >~ applies.

  21. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  23. def equals (arg0: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  26. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  27. def headers_> [T] (block: (Map[String, Seq[String]]) ⇒ T): Handler[T]

    Process headers as a Map of strings to sequences of *lowercase* strings, to facilitate case-insensetive header lookup.

  28. def isInstanceOf [T0] : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  30. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notifyAll (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  33. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any