Http2RequestContext class

Inheritance

Properties

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

Methods

close() → Future
Disposes of all resources.
override
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
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 non-existent 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
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

from(ServerTransportStream stream, Socket socket, Angel app, Map<String, MockHttpSession> sessions, Uuid uuid) → Future<Http2RequestContext>