A convenience wrapper around an incoming HTTP request.

Inheritance

Static Methods

from(HttpRequest request, Map parameters, Angel app, Route sourceRoute) → Future<RequestContext>

Magically transforms an HttpRequest into a RequestContext.

Constructors

RequestContext()

Properties

app Angel

The Angel instance that is responding to this request.

read / write
body → Map

All post data submitted to the server.

read / write
contentType → ContentType

The content type of an incoming request.

read / write
cookies → List<Cookie>

Any cookies sent with this request.

read-only
files → List<FileUploadInfo>

Any and all files sent to the server with this request.

read / write
hashCode → int

Get a hash code for this object.

read-only, inherited
headers → HttpHeaders

All HTTP headers sent with this request.

read-only
hostname → String

The requested hostname.

read-only
ip → String

The user's IP.

read-only
method → String

This request's HTTP method.

read-only
params → Map

The URL parameters extracted from the request URI.

read / write
path → String

The requested path.

read / write
properties → Map

A set of custom properties that can be assigned to the server.

read / write, inherited
query → Map

The parsed request query string.

read / write
remoteAddress → InternetAddress

The remote address requesting this resource.

read / write
route Route

The route that matched this request.

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
session → HttpSession

The user's HTTP session.

read / write
underlyingRequest → HttpRequest

The underlying HttpRequest instance underneath this context.

read / write
xhr → bool

Is this an XMLHttpRequest?

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited