HttpRequest constructor

const HttpRequest({
  1. required String endpoint,
  2. required String method,
  3. Map<String, dynamic>? query,
  4. Map<String, String>? headers,
  5. RequestBody body = const RequestBody.none(),
  6. ResponseTypeHint responseType = ResponseTypeHint.json,
})

Creates a transport request.

Implementation

const HttpRequest({
  required this.endpoint,
  required this.method,
  this.query,
  this.headers,
  this.body = const RequestBody.none(),
  this.responseType = ResponseTypeHint.json,
});