case class ServerRequest(method: RequestMethod.Value, headers: Map[String, String], session: Option[Session], path: List[String], query: String, body: Body) extends Product with Serializable
Represents a request made to the MMT Server.
- method
Method used to make request
- path
the full path of the request (use pathForExtension when accessing the path in a ServerExtension)
- query
the query portion of the URL
- Source
- ServerRequest.scala
- Alphabetic
- By Inheritance
- ServerRequest
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ServerRequest(method: RequestMethod.Value, headers: Map[String, String], session: Option[Session], path: List[String], query: String, body: Body)
- method
Method used to make request
- path
the full path of the request (use pathForExtension when accessing the path in a ServerExtension)
- query
the query portion of the URL
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
accept(types: List[String], default: ⇒ String = ""): String
returns the content type that is shown first
-
lazy val
acceptedTypes: List[String]
a set of accepted content types
-
def
accepts(content: String): Boolean
checks if the server accepts a specific content type
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val body: Body
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
lazy val
decodedQuery: String
a decoded version of the query string
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def extensionName: Option[String]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def header(key: String): Option[String]
- val headers: Map[String, String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val method: RequestMethod.Value
-
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()
-
lazy val
parsedQuery: WebQuery
a parsed version of the query string
- val path: List[String]
- def pathForExtension: List[String]
- def pathString: String
- val query: String
- val session: Option[Session]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toStringShort: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()