responseFunction property
Future<Response> Function(Uri uri, {Map<String, String> ? headers})
responseFunction
getter/setter pair
The function used to send the request.
HTTP methods such as GET, POST or PUT or DELETE can be easily set if needed. However, as mostly only GET should be cached, GET is set as the application default.
Implementation
Future<Response> Function(Uri uri, {Map<String, String>? headers}) responseFunction;