RecordedRequest class final
A request captured by MockWordpressAdapter.
Constructors
-
RecordedRequest({required String method, required Uri uri, required Map<
String, dynamic> headers, required dynamic body}) -
const
Properties
- body → dynamic
-
The request body as given to Dio (already JSON-encoded for GraphQL).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, dynamic> -
The headers that were actually sent to the server.
final
- method → String
-
Upper-case HTTP method (
GET,POST, ...).final - path → String
-
The request path, e.g.
/wp-json/wp/v2/posts.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
The full resolved request URI, including the query string.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited