001package io.prometheus.metrics.exporter.common;
002
003import java.io.IOException;
004
005public interface PrometheusHttpExchange extends AutoCloseable {
006  PrometheusHttpRequest getRequest();
007
008  PrometheusHttpResponse getResponse();
009
010  void handleException(IOException e) throws IOException;
011
012  void handleException(RuntimeException e);
013
014  @Override
015  void close();
016}