io.prometheus.client.exporter.DefaultHttpConnectionFactory Maven / Gradle / Ivy
package io.prometheus.client.exporter;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
public class DefaultHttpConnectionFactory implements HttpConnectionFactory {
@Override
public HttpURLConnection create(String url) throws IOException {
return (HttpURLConnection) new URL(url).openConnection();
}
}