MethodWithBody constructor
MethodWithBody({})
Implementation
MethodWithBody({
String method = 'POST',
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,
dynamic body,
}) : super(
method: method,
uri: uri,
headers: headers,
authHeaders: authHeaders,
cookies: cookies,
before: before,
after: after,
metadata: metadata,
client: client) {
_body = body;
// Do nothing
}