HttpRequest constructor

HttpRequest({
  1. required String url,
  2. HttpMethod httpMethod = HttpMethod.$default,
  3. Map<String, String> headers = const {},
  4. Uint8List? body,
  5. OauthToken? oauthToken,
  6. OidcToken? oidcToken,
})

Implementation

HttpRequest({
  required this.url,
  this.httpMethod = HttpMethod.$default,
  this.headers = const {},
  Uint8List? body,
  this.oauthToken,
  this.oidcToken,
}) : body = body ?? Uint8List(0),
     super(fullyQualifiedName);