requestExecute static method

Future<Page<LiquidityPoolResponse>> requestExecute(
  1. Client httpClient,
  2. Uri uri
)

Requests specific uri and returns Page of LiquidityPoolResponse. This method is helpful for getting the next set of results.

Implementation

static Future<Page<LiquidityPoolResponse>> requestExecute(
    http.Client httpClient, Uri uri) async {
  TypeToken<Page<LiquidityPoolResponse>> type =
  new TypeToken<Page<LiquidityPoolResponse>>();
  ResponseHandler<Page<LiquidityPoolResponse>> responseHandler =
  new ResponseHandler<Page<LiquidityPoolResponse>>(type);

  return await httpClient.get(uri, headers: RequestBuilder.headers).then((response) {
    return responseHandler.handleResponse(response);
  });
}