requestExecute method

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

Implementation

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

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