use of org.sonarsource.sonarlint.core.util.ws.GetRequest in project sonarlint-core by SonarSource.
the class SonarLintWsClient method rawGet.
/**
* Execute GET and don't check response
*/
public WsResponse rawGet(String path) {
long startTime = System2.INSTANCE.now();
GetRequest request = new GetRequest(path);
WsResponse response = client.call(request);
long duration = System2.INSTANCE.now() - startTime;
if (LOG.isDebugEnabled()) {
LOG.debug("{} {} {} | time={}ms", request.getMethod(), response.code(), response.requestUrl(), duration);
}
return response;
}
Aggregations