get method

Future<HttpResponse> get(
  1. String path, {
  2. Map<String, String>? headers,
  3. bool fullPath = false,
  4. Credential? authorization,
  5. Map<String, Object?>? parameters,
  6. String? accept,
  7. String? responseType,
  8. ProgressListener? progressListener,
})

/////////// Does a GET request.

Implementation

/// Does a GET request.
Future<HttpResponse> get(String path,
    {Map<String, String>? headers,
    bool fullPath = false,
    Credential? authorization,
    Map<String, Object?>? parameters,
    String? accept,
    String? responseType,
    ProgressListener? progressListener}) async {
  var parametersMapStr = _toParametersMapOfString(parameters);
  var url = _buildURL(path, fullPath, parametersMapStr, true);
  var requestAuthorization = await _buildRequestAuthorization(authorization);
  return _clientRequester.requestGET(this, url,
      headers: headers,
      authorization: requestAuthorization,
      accept: accept,
      responseType: responseType,
      progressListener: progressListener);
}