get static method

Future<Result<String>> get(
  1. String endpoint, {
  2. int timeout = 3,
  3. Map<String, dynamic>? queryPara,
  4. Map<String, String>? headers,
  5. bool isRetry = false,
})

get request

Implementation

static Future<Result<String>> get(String endpoint,
    {int timeout = 3, Map<String, dynamic>? queryPara, Map<String, String>? headers, bool isRetry = false}) async {
  return _request(
    endpoint,
    type: _RequestType.get,
    timeout: timeout,
    queryPara: queryPara,
    headers: headers,
    isRetry: isRetry,
  );
}