RequestContext class

Context information for HTTP events that trigger rules

Constructors

RequestContext({required String url, required String method, required int statusCode, bool timeout = false, int duration = 0, dynamic requestBody, dynamic responseBody})
const

Properties

duration int
final
hashCode int
The hash code for this object.
no setterinherited
method String
final
requestBody → dynamic
final
responseBody → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
final
timeout bool
final
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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