Packages

object RouteAction

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RouteAction
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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 Buffer(code: Int, status: String, body: ByteBuffer, headers: Headers): RouteAction

    generate a HTTP response from a single ByteBuffer

    generate a HTTP response from a single ByteBuffer

    body

    the single ByteBuffer which represents the body. Note: this method will not modify the passed ByteBuffer, instead making read-only views of it when writing to the socket, so the resulting responses can be reused multiple times.

  5. def EntityTooLarge(): RouteAction

    Generate a 413 'Entity Too Large' response

  6. def InternalServerError(msg: String = "Internal Server Error", headers: Headers = Nil): RouteAction

    Generate a 500 'Internal Server Error' with the specified message

  7. def Ok(body: ByteBuffer): RouteAction

    Generate a 200 OK HTTP response from a ByteBuffer

  8. def Ok(body: ByteBuffer, headers: Headers): RouteAction

    Generate a 200 OK HTTP response from a ByteBuffer

  9. def Ok(body: String): RouteAction

    Generate a 200 OK HTTP response from a String

  10. def Ok(body: String, headers: Headers): RouteAction

    Generate a 200 OK HTTP response from a String

  11. def Ok(body: Array[Byte]): RouteAction

    Generate a 200 OK HTTP response from an Array[Byte]

  12. def Ok(body: Array[Byte], headers: Headers = Nil): RouteAction

    Generate a 200 OK HTTP response from an Array[Byte]

  13. def Streaming(code: Int, status: String, headers: Headers)(body: => Future[ByteBuffer])(implicit ec: ExecutionContext = Execution.trampoline): RouteAction

    generate a streaming HTTP response

    generate a streaming HTTP response

    body

    each invocation should generate the next body chunk. Each chunk will be written before requesting another chunk. Termination is signaled by an empty ByteBuffer as defined by the return value of ByteBuffer.hasRemaining().

  14. def String(body: String, code: Int, status: String, headers: Headers): RouteAction

    generate a HTTP response from a String

  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped