Request

cask.model.Request
case class Request(exchange: HttpServerExchange, remainingPathSegments: Seq[String], boundPathSegments: Map[String, String]) extends ByteData, Readable

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Readable
trait Writable
trait ByteData
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def readAllBytes(): Array[Byte]

Read all the bytes of the incoming request without caching

Read all the bytes of the incoming request without caching

Attributes

def readBytesThrough[T](f: InputStream => T): T

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
Writable
def httpContentType: Option[String]

Attributes

Inherited from:
Writable
def lines(codec: Codec): Vector[String]

Attributes

Inherited from:
ByteData
def lines(): Vector[String]

Attributes

Inherited from:
ByteData
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def text(codec: Codec): String

Attributes

Inherited from:
ByteData
def text(): String

Attributes

Inherited from:
ByteData
def trim(codec: Codec): String

Attributes

Inherited from:
ByteData
def trim(): String

Attributes

Inherited from:
ByteData
def writeBytesTo(out: OutputStream): Unit

Attributes

Inherited from:
Readable

Concrete fields

lazy val bytes: Array[Byte]

Read all the bytes of the incoming request with caching

Read all the bytes of the incoming request with caching

Attributes

lazy val cookies: Map[String, Cookie]
lazy val data: InputStream
lazy val headers: Map[String, Seq[String]]
lazy val queryParams: Map[String, Seq[String]]