executeRequest method

Future<StreamedResponse> executeRequest(
  1. String method,
  2. String path, {
  3. Map<String, String>? headers,
  4. Uint8List? body,
  5. Set<int>? validStatuses,
})
inherited

Makes a request against a given path.

The query parameters of the baseURL are added. The path is resolved against the path of the baseURL. All baseHeaders are added to the request.

Implementation

Future<http.StreamedResponse> executeRequest(
  String method,
  String path, {
  Map<String, String>? headers,
  Uint8List? body,
  Set<int>? validStatuses,
}) {
  final uri = Uri.parse('$baseURL$path');

  return executeRawRequest(
    method,
    uri,
    headers: headers,
    body: body,
    validStatuses: validStatuses,
  );
}