WebRequestBody

@native @JSType
trait WebRequestBody extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val error: UndefOr[String]

Optional: Errors when obtaining request body data.

Optional: Errors when obtaining request body data.

val formData: UndefOr[Dictionary[Array[String]]]

Optional: If the request method is POST and the body is a sequence of key-value pairs encoded in UTF8, encoded as either multipart/form-data, or application/x-www-form-urlencoded, this dictionary is present and for each key contains the list of all values for that key. If the data is of another media type, or if it is malformed, the dictionary is not present. An example value of this dictionary is {'key': ['value1', 'value2']}.

Optional: If the request method is POST and the body is a sequence of key-value pairs encoded in UTF8, encoded as either multipart/form-data, or application/x-www-form-urlencoded, this dictionary is present and for each key contains the list of all values for that key. If the data is of another media type, or if it is malformed, the dictionary is not present. An example value of this dictionary is {'key': ['value1', 'value2']}.

val raw: UndefOr[Array[UploadData]]

Optional: If the request method is PUT or POST, and the body is not already parsed in formData, then the unparsed request body elements are contained in this array.

Optional: If the request method is PUT or POST, and the body is not already parsed in formData, then the unparsed request body elements are contained in this array.