object RouteAction
- Alphabetic
- By Inheritance
- RouteAction
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def Buffer(code: Int, status: String, body: ByteBuffer, headers: Headers): RouteAction
generate a HTTP response from a single
ByteBuffergenerate a HTTP response from a single
ByteBuffer- body
the single
ByteBufferwhich represents the body. Note: this method will not modify the passedByteBuffer, instead making read-only views of it when writing to the socket, so the resulting responses can be reused multiple times.
- def EntityTooLarge(): RouteAction
Generate a 413 'Entity Too Large' response
- def InternalServerError(msg: String = "Internal Server Error", headers: Headers = Nil): RouteAction
Generate a 500 'Internal Server Error' with the specified message
- def Ok(body: ByteBuffer): RouteAction
Generate a 200 OK HTTP response from a
ByteBuffer - def Ok(body: ByteBuffer, headers: Headers): RouteAction
Generate a 200 OK HTTP response from a
ByteBuffer - def Ok(body: String): RouteAction
Generate a 200 OK HTTP response from a
String - def Ok(body: String, headers: Headers): RouteAction
Generate a 200 OK HTTP response from a
String - def Ok(body: Array[Byte]): RouteAction
Generate a 200 OK HTTP response from an
Array[Byte] - def Ok(body: Array[Byte], headers: Headers = Nil): RouteAction
Generate a 200 OK HTTP response from an
Array[Byte] - 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
ByteBufferas defined by the return value ofByteBuffer.hasRemaining().
- def String(body: String, code: Int, status: String, headers: Headers): RouteAction
generate a HTTP response from a String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()