java.lang.Object
io.prometheus.metrics.exporter.servlet.jakarta.HttpExchangeAdapter.Response
All Implemented Interfaces:
io.prometheus.metrics.exporter.common.PrometheusHttpResponse
Enclosing class:
HttpExchangeAdapter

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

    • Response

      public Response(jakarta.servlet.http.HttpServletResponse response)
  • 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