dispatch.classic

RequestVerbs

class RequestVerbs extends AnyRef

These functions create new request descriptors based off of the current one. Most are intended to be used as infix operators; those that don't take a parameter have character names to be used with dot notation, e.g. :/("example.com").HEAD.secure >>> {...}

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

Instance Constructors

  1. new RequestVerbs(subject: Request)

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def /(path: String): Request

    Append an element to this request's path, joins with '/'.

    Append an element to this request's path, joins with '/'. (mutates request)

  4. def <&(req: Request): Request

    Combine this request with another.

  5. def <:<(values: Map[String, String]): Request

    Add headers to this request.

    Add headers to this request. (mutates request)

  6. def <<(contents: Array[Byte]): Request

    Post the given byte array.

  7. def <<(stringbody: String, contenttype: String): Request

    Post the given string value.

  8. def <<(stringbody: String): Request

    Post the given string value, with text/plain content-type.

  9. def <<(values: Traversable[(String, String)]): Request

    Post the given key value sequence.

  10. def <<<(values: Traversable[(String, String)]): Request

    PUT the given values as a urlencoded form

  11. def <<<(file: File, content_type: String): Request

    PUT the given file.

  12. def <<<(stringbody: String, contenttype: String): Request

    PUT the given string.

  13. def <<<(stringbody: String): Request

    PUT the given string, with text/plain content-type.

  14. def <<?(values: Traversable[(String, String)]): Request

    Add query parameters.

    Add query parameters. (mutates request)

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

    Definition Classes
    AnyRef → Any
  16. def >&[T](other: Handler[T]): Handler[T]

    Combine this request with another handler.

  17. def >\(charset: String): Request

    Set the default character set to be used when processing the request in <<, <<<, Handler#>> and derived operations >~, as_str, etc.

    Set the default character set to be used when processing the request in <<, <<<, Handler#>> and derived operations >~, as_str, etc. (The 'factory' default is utf-8.)

  18. def DELETE: Request

    HTTP delete request.

  19. def HEAD: Request

    HTTP head request.

    HTTP head request. See >:> to access headers.

  20. def OPTIONS: Request

    HTTP options request.

  21. def POST: Request

    HTTP post request.

  22. def PUT: Request

    HTTP put request.

  23. def as(name: String, pass: String): Request

    Set credentials that may be used for basic or digest auth; requires a host value :/(.

    Set credentials that may be used for basic or digest auth; requires a host value :/(...) upon execution.

  24. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  25. def as_!(name: String, pass: String): Request

    Add basic auth header unconditionally to this request.

    Add basic auth header unconditionally to this request. Does not wait for a 401 response.

  26. def clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  31. def gzip: Request

  32. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  37. def secure: Request

    Convert this to a secure (scheme https) request if not already

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def to_uri: URI

    returns

    URI based on this request, e.g. if needed outside Disptach.

  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped