Request

fm.http.server.Request
See theRequest companion object
final class Request(val remoteIp: IP, request: HttpRequest, val content: LinkedHttpContentReader)(implicit execution: ExecutionContext) extends Logging with Closeable

Attributes

Companion:
object
Graph
Supertypes
trait Closeable
trait AutoCloseable
trait Logging
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def close(): Unit
def close(t: Throwable): Unit
def completed: Future[Unit]

This future is completed when the request has been fully processed

This future is completed when the request has been fully processed

Attributes

def contentLength: Option[Long]

The Content-Length of the request body (if known)

The Content-Length of the request body (if known)

Attributes

def isCONNECT: Boolean
def isContentFullyRead: Boolean
def isDELETE: Boolean
def isGET: Boolean
def isHEAD: Boolean
def isOPTIONS: Boolean
def isPATCH: Boolean
def isPOST: Boolean
def isPUT: Boolean
def isTRACE: Boolean

Concrete fields

val host: Option[String]

The value of the Host header WITHOUT the port number

The value of the Host header WITHOUT the port number

Attributes

val hostWithPort: Option[String]

The raw value of the Host headers which may contain a port number: frugalmechanic.com:8080

The raw value of the Host headers which may contain a port number: frugalmechanic.com:8080

Attributes

val id: UUID

A fm.common.UUID that can be used to uniquely identify this request

A fm.common.UUID that can be used to uniquely identify this request

Attributes

val method: HttpMethod
val params: QueryParams

The parsed query params

The parsed query params

Attributes

val path: String

The path that was requested (no query params, e.g. /path)

The path that was requested (no query params, e.g. /path)

Attributes

lazy val postBody: Future[PostBody]

The contents of the POST/PUT/PATCH body. Only access this value if you want to initiate receiving the data

The contents of the POST/PUT/PATCH body. Only access this value if you want to initiate receiving the data

Attributes

val remoteIp: IP
val startTimeMillis: Long

The time this Request started

The time this Request started

Attributes

val uri: String
val version: HttpVersion