The 'event' type for MockHTTPServer.

Instances of this type will represent HTTP requests that have been sent to an MockHTTPServer.

Constructors

MockHTTPRequest()

Properties

body → String

The undecoded body of the HTTP request.

read / write
headers → Map<String, dynamic>

The headers of the HTTP request.

read / write
jsonBody → dynamic

The body of the HTTP request decoded as JSON.

read-only
method → String

The method of the HTTP request.

read / write
path → String

The path of the HTTP request.

read / write
queryParameters → Map<String, dynamic>

The query parameters of the HTTP request.

read / write
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

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