ShelfRequestContext class

Constructors

ShelfRequestContext(Angel angelApp, Container container, Request rawRequest, String path)

Properties

acceptsAll bool
Returns as true if the client's Accept header indicates that it will accept any response content type.
no setterinherited
angelApp → Angel
final
app ↔ Angel?
The Angel instance that is responding to this request.
getter/setter pairinherited
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 pairinherited
bodyAsMap Map<String, dynamic>
Returns a mutable Map of the fields parsed from the request body.
getter/setter pairinherited
bodyAsObject Object?
Returns the parsed request body, whatever it may be (typically a Map or List).
getter/setter pairinherited
container → Container
The IoC container that can be used to provide functionality to produce objects of a given type.
final
contentType → MediaType
The content type of an incoming request.
no setterinherited
cookies List<Cookie>
Any cookies sent with this request.
no setter
extension String
Returns the file extension of the requested path, if any.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasParsedBody bool
Returns true if parseBody has been called so far.
no setterinherited
headers → MockHttpHeaders
All HTTP headers sent with this request.
final
hostname String
The requested hostname.
no setter
ip String
The user's IP.
no setterinherited
isXhr bool
Is this an XMLHttpRequest?
no setterinherited
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 pairinherited
path String
The requested path.
final
queryParameters Map<String, dynamic>
Returns a mutable map of the fields contained in the query.
no setterinherited
rawRequest → Request
The underlying RawRequest provided by the driver.
final
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.
finalinherited
session HttpSession?
The user's HTTP session.
no setter
shutdownHooks List<FutureOr<void> Function()>
finalinherited
uploadedFiles List<UploadedFile>?
Returns a mutable map of the files parsed from the request body.
no setterinherited
uri Uri
The Uri instance representing the path this request is responding to.
no setter

Methods

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.
inherited
close() Future<void>
Disposes of all resources.
inherited
decodeBody<T>(Codec<T, Map?> codec, {Encoding encoding = utf8}) Future<T>
Shorthand for decoding bodyAsMap, using some codec.
inherited
deserializeBody<T>(FutureOr<T> f(Map?), {Encoding encoding = utf8}) Future<T>
Shorthand for deserializing bodyAsMap, using some transformer function f.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseBody({Encoding encoding = utf8}) Future<void>
Manually parses the request body, if it has not already been parsed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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