trait ServerRequest extends RequestMetadata
- Alphabetic
- By Inheritance
- ServerRequest
- RequestMetadata
- HasHeaders
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def attribute[T](k: AttributeKey[T], v: T): ServerRequest
- abstract def attribute[T](k: AttributeKey[T]): Option[T]
- abstract def connectionInfo: ConnectionInfo
- abstract def headers: Seq[Header]
- Definition Classes
- HasHeaders
- abstract def method: Method
- Definition Classes
- RequestMetadata
- abstract def pathSegments: List[String]
Can differ from
uri.path
, if the endpoint is deployed in a context - abstract def protocol: String
- abstract def queryParameters: QueryParams
- abstract def underlying: Any
- abstract def uri: Uri
- Definition Classes
- RequestMetadata
- abstract def withUnderlying(underlying: Any): ServerRequest
Create a copy of this server request, which reads data from the given underlying implementation.
Create a copy of this server request, which reads data from the given underlying implementation. The type of
underlying
should be the same as the type ofthis.underlying
.
Concrete 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
- lazy val acceptsContentTypes: Either[String, Seq[ContentTypeRange]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def contentLength: Option[Long]
- Definition Classes
- HasHeaders
- def contentType: Option[String]
- Definition Classes
- HasHeaders
- lazy val contentTypeParsed: Option[MediaType]
- def cookies: Seq[Either[String, CookieWithMeta]]
- Definition Classes
- HasHeaders
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def header(h: String): Option[String]
- Definition Classes
- HasHeaders
- def headers(h: String): Seq[String]
- Definition Classes
- HasHeaders
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def showShort: String
A short representation of this request, including the request method, path and query.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- RequestMetadata → AnyRef → Any
- def unsafeCookies: Seq[CookieWithMeta]
- Definition Classes
- HasHeaders
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withOverride(methodOverride: Option[Method] = None, uriOverride: Option[Uri] = None, protocolOverride: Option[String], connectionInfoOverride: Option[ConnectionInfo], pathSegmentsOverride: Option[List[String]] = None, queryParametersOverride: Option[QueryParams] = None, headersOverride: Option[Seq[Header]] = None): ServerRequest
Create a copy of this server request, which overrides some of the data that is read from the underlying implementation with the given values.
Create a copy of this server request, which overrides some of the data that is read from the underlying implementation with the given values. E.g. instead of reading the headers from the underlying request, the headers might be given explicitly.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated