MethodWithBody constructor

MethodWithBody({
  1. String method = 'POST',
  2. dynamic uri,
  3. Map<String, String> headers = const {},
  4. Map<String, String> authHeaders = const {},
  5. List<ClientCookie> cookies = const [],
  6. List<Before> before = const [],
  7. List<After> after = const [],
  8. Map<String, dynamic> metadata = const {},
  9. BaseClient? client,
  10. dynamic body,
})

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
}