RequestParts class final
The non-body half of a request.
Extractors that never read the body use this instead of touching
Request.read, which may only be called once.
Constructors
- RequestParts.of(Request request)
-
Reads the parts of
request.factory
Properties
- contentLength → int?
-
The
content-lengthheader as an integer, ornullwhen absent or malformed.no setter - contentType → MediaType?
-
The full
content-type, parameters included, ornullwhen absent or unparseable.no setter -
context
→ Map<
String, Object> -
The shelf request context, which middleware uses to pass values along.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Request headers, with lower-case keys.
final
- mediaType → String?
-
The parsed
content-type, without parameters, ornullwhen absent.no setter - method → String
-
The uppercase HTTP method.
final
-
pathParameters
→ Map<
String, String> -
Path parameters captured by the router.
final
- requestedUri → Uri
-
The full URI as received, including scheme and host.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
The URI relative to the mount point.
final
Methods
-
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