get method

Future<HTTPResult> get(
  1. String endpoint, {
  2. Map<String, String>? headers,
  3. bool requiresAuth = true,
  4. Duration? timeout,
})

Perform GET request

Implementation

Future<HTTPResult> get(
  String endpoint, {
  Map<String, String>? headers,
  bool requiresAuth = true,
  Duration? timeout,
}) async {
  return _request(
    method: 'GET',
    endpoint: endpoint,
    headers: headers,
    requiresAuth: requiresAuth,
    timeout: timeout,
  );
}