DVHttpFixture class

A response recorded from a real call, to be replayed by a stub.

Recorded rather than written by hand so a stub stays honest about the shape the service actually returns.

Constructors

DVHttpFixture({required String method, required Uri url, required int status, Map<String, String> headers = const <String, String>{}, List<int> body = const <int>[]})
const
DVHttpFixture.fromJson(Map<String, Object?> json)
factory

Properties

body → List<int>
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
final
method → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
final
url → Uri
final

Methods

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

Operators

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