sealed trait AnyContent extends AnyRef
A request body that adapts automatically according the request Content-Type.
- Source
- BodyParsers.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- AnyContent
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
asFormUrlEncoded: Option[Map[String, Seq[String]]]
application/x-www-form-urlencoded
-
def
asJson: Option[JsValue]
text/json or application/json
-
def
asMultipartFormData: Option[MultipartFormData[TemporaryFile]]
multipart/form-data
-
def
asRaw: Option[RawBuffer]
Used when no Content-Type matches
-
def
asText: Option[String]
text/plain
-
def
asXml: Option[NodeSeq]
application/xml