get<BodyType, InnerType> method

Future<Response<BodyType>> get<BodyType, InnerType>(
  1. Uri url, {
  2. Map<String, String> headers = const {},
  3. Uri? baseUrl,
  4. Map<String, dynamic> parameters = const {},
  5. dynamic body,
})

Makes a HTTP GET request using the send function.

Implementation

Future<Response<BodyType>> get<BodyType, InnerType>(
  Uri url, {
  Map<String, String> headers = const {},
  Uri? baseUrl,
  Map<String, dynamic> parameters = const {},
  dynamic body,
}) =>
    send<BodyType, InnerType>(
      Request(
        HttpMethod.Get,
        url,
        baseUrl ?? this.baseUrl,
        body: body,
        headers: headers,
        parameters: parameters,
      ),
    );