GopherRequestContext class

Inheritance

Constructors

GopherRequestContext(GopherRequest rawRequest, Container container, String path)

Properties

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
body Stream<List<int>>
The Stream of incoming binary data sent from the client.
read-only, override
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
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.
read-only, inherited
cookies List<Cookie>
Any cookies sent with this request.
final
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
headers HttpHeaders
All HTTP headers sent with this request.
final
hostname String
The requested hostname.
read-only, override
ip String
The user's IP.
read-only, inherited
isXhr bool
Is this an XMLHttpRequest?
read-only, inherited
method String
This request's HTTP method. [...]
read-only, override
originalMethod String
The original HTTP verb sent to the server.
read-only, override
params Map<String, dynamic>
The URL parameters extracted from the request URI.
read / write, inherited
path String
The requested path.
final
queryParameters Map<String, dynamic>
Returns a mutable map of the fields contained in the query.
read-only, inherited
rawRequest GopherRequest
The underlying RawRequest provided by the driver.
final
remoteAddress InternetAddress
The remote address requesting this resource.
read-only, override
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
session HttpSession
The user's HTTP session.
read-only, override
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
uri Uri
The Uri instance representing the path this request is responding to.
read-only, override

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.
@mustCallSuper, 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 ==(Object other) bool
The equality operator. [...]
inherited