Method constructor
Method({})
Implementation
Method({
this.method = 'GET',
dynamic? /* String | Uri | MutUri */ uri,
Map<String, String> headers = const {},
Map<String, String> authHeaders = const {},
List<ClientCookie> cookies = const [],
List<Before> before = const [],
List<After> after = const [],
Map<String, dynamic> metadata = const {},
ht.BaseClient? client,
}) : getClient = client {
if (uri != null) {
this.uri = MutUri.from(uri);
}
getMetadata.addAll(metadata);
getHeaders.addAll(headers);
getAuthHeaders.addAll(authHeaders);
getCookies.addAll(cookies);
getBefore.addAll(before);
getAfter.addAll(after);
}