presto-proxy/src/main/java/io/prestosql/proxy/ProxyResource.java/ProxyResource/buildResponse
class ProxyResource:    private Response buildResponse(UriInfo uriInfo, ProxyResponse response)
    {
        byte[] body = rewriteResponse(response.getBody(), uri -> rewriteUri(uriInfo, uri));
        return responseWithHeaders(Response.ok(body), response);
    }