Class HttpExchangeAdapter.HttpResponse

java.lang.Object
io.prometheus.metrics.exporter.httpserver.HttpExchangeAdapter.HttpResponse
All Implemented Interfaces:
io.prometheus.metrics.exporter.common.PrometheusHttpResponse
Enclosing class:
HttpExchangeAdapter

public class HttpExchangeAdapter.HttpResponse extends Object implements io.prometheus.metrics.exporter.common.PrometheusHttpResponse
  • Constructor Details

  • Method Details

    • setHeader

      public void setHeader(String name, String value)
      Specified by:
      setHeader in interface io.prometheus.metrics.exporter.common.PrometheusHttpResponse
    • sendHeadersAndGetBody

      public OutputStream sendHeadersAndGetBody(int statusCode, int contentLength) throws IOException
      Specified by:
      sendHeadersAndGetBody in interface io.prometheus.metrics.exporter.common.PrometheusHttpResponse
      Throws:
      IOException