dispatch.classic

HandlerVerbs

class HandlerVerbs extends AnyRef

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

Instance Constructors

  1. new HandlerVerbs(request: Request)

Value Members

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

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

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

    Process response as XML document in block

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. def >+[A, B](block: (Request) ⇒ (Handler[A], Handler[B])): Handler[(A, B)]

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

  6. 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.

  7. 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.

  8. 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.

  9. 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.

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

    Handle InputStream in block, handle gzip if so encoded.

  11. 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#>\)

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

    Write to the given OutputStream.

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

    Handle response as a java.

    Handle response as a java.io.Reader

  14. def >|: Handler[Unit]

    Ignore response body.

  15. 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).

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def as_source: Handler[Source]

    Return response as a scala.

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

  18. 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.

  19. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  25. 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.

  26. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Definition Classes
    AnyRef
  31. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped