TextBodyExtractable class final
Reads the body as UTF-8 text.
The charset parameter on content-type is ignored; anything that is not
UTF-8 is a 400.
- Implemented types
Constructors
- TextBodyExtractable({int limit = defaultBodyLimit})
-
Reads the body as text.
const
Properties
Methods
-
extract(
Request request) → Future< Result< String, Rejection> > -
Produces the value, or the rejection that stops the handler.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited