RequestContext<RawRequest> class abstract

A convenience wrapper around an incoming RawRequest.





acceptsAll bool
Returns as true if the client's Accept header indicates that it will accept any response content type.
no setter
app Angel?
The Angel instance that is responding to this request.
getter/setter pair
body Stream<List<int>>?
The Stream of incoming binary data sent from the client.
no setter
bodyAsList List?
Returns a mutable List parsed from the request body.
getter/setter pair
bodyAsMap Map<String, dynamic>
Returns a mutable Map of the fields parsed from the request body.
getter/setter pair
bodyAsObject Object?
Returns the parsed request body, whatever it may be (typically a Map or List).
getter/setter pair
container → Container?
The IoC container that can be used to provide functionality to produce objects of a given type.
no setter
contentType → MediaType
The content type of an incoming request.
no setter
cookies List<Cookie>
Any cookies sent with this request.
no setter
extension String
Returns the file extension of the requested path, if any.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasParsedBody bool
Returns true if parseBody has been called so far.
no setter
headers HttpHeaders?
All HTTP headers sent with this request.
no setter
hostname String
The requested hostname.
no setter
ip String
The user's IP.
no setter
isXhr bool
Is this an XMLHttpRequest?
no setter
method String
This request's HTTP method.
no setter
originalMethod String
The original HTTP verb sent to the server.
no setter
params Map<String, dynamic>
The URL parameters extracted from the request URI.
getter/setter pair
path String
The requested path.
no setter
queryParameters Map<String, dynamic>
Returns a mutable map of the fields contained in the query.
no setter
rawRequest → RawRequest
The underlying RawRequest provided by the driver.
no setter
remoteAddress InternetAddress
The remote address requesting this resource.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceParams Map<String, dynamic>
Additional params to be passed to services.
session HttpSession?
The user's HTTP session.
no setter
shutdownHooks List<FutureOr<void> Function()>
uploadedFiles List<UploadedFile>?
Returns a mutable map of the files parsed from the request body.
no setter
uri Uri?
The Uri instance representing the path this request is responding to.
no setter


accepts(dynamic contentType, {bool strict = false}) bool
Returns true if the client's Accept header indicates that the given contentType is considered a valid response.
close() Future<void>
Disposes of all resources.
decodeBody<T>(Codec<T, Map?> codec, {Encoding encoding = utf8}) Future<T>
Shorthand for decoding bodyAsMap, using some codec.
deserializeBody<T>(FutureOr<T> f(Map?), {Encoding encoding = utf8}) Future<T>
Shorthand for deserializing bodyAsMap, using some transformer function f.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
parseBody({Encoding encoding = utf8}) Future<void>
Manually parses the request body, if it has not already been parsed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.