getClient static method

Client getClient(
  1. String uri,
  2. String method
)

Implementation

static Client getClient(String uri, String method) {
  if (TGMockService.shouldApplyMock(uri, method)!) {
    return new TGMockClient(getMockClientHandler);
  } else {
    return new TGHttpClient();
  }
}