VcrAdapter class
Constructors
- VcrAdapter({String basePath = 'test/cassettes', bool createIfNotExists = true})
Properties
- basePath ↔ String
-
getter/setter pair
- createIfNotExists ↔ bool
-
getter/setter pair
- file → File
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- onHttpClientCreate ↔ OnHttpClientCreate?
-
Dio
will create HttpClient when it is needed. If onHttpClientCreate is provided,Dio
will call it when a HttpClient created.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
{bool force = false}) → void -
inherited
-
fetch(
RequestOptions options, Stream< Uint8List> ? requestStream, Future? cancelFuture) → Future<ResponseBody> - We should implement this method to make real http requests.
-
loadFile(
String path) → File -
loadPath(
String path) → String -
makeNormalRequest(
RequestOptions options, Stream< Uint8List> ? requestStream, Future? cancelFuture) → Future<Map?> -
matchRequest(
Uri uri) → Future< Map?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
useCassette(
dynamic path) → dynamic
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited