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-length header as an integer, or null when absent or malformed.
no setter
contentType → MediaType?
The full content-type, parameters included, or null when 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, or null when 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