Search in sources :

Example 1 with HttpRequestWrapper

use of org.apache.hc.core5.http.message.HttpRequestWrapper in project metrics by dropwizard.

the class HttpClientMetricNameStrategiesTest method rewriteRequestURI.

private static HttpRequest rewriteRequestURI(HttpRequest request) throws URISyntaxException {
    HttpRequestWrapper wrapper = new HttpRequestWrapper(request);
    URI uri = URIUtils.rewriteURI(wrapper.getUri(), null, true);
    wrapper.setUri(uri);
    return wrapper;
}
Also used : HttpRequestWrapper(org.apache.hc.core5.http.message.HttpRequestWrapper) URI(java.net.URI)

Aggregations

URI (java.net.URI)1 HttpRequestWrapper (org.apache.hc.core5.http.message.HttpRequestWrapper)1