Interface PrometheusHttpResponse
- All Known Implementing Classes:
HttpExchangeAdapter.HttpResponse
,HttpExchangeAdapter.Response
,HttpExchangeAdapter.Response
public interface PrometheusHttpResponse
-
Method Summary
Modifier and TypeMethodDescriptionsendHeadersAndGetBody
(int statusCode, int contentLength) This is equivalent to callingHttpExchange.sendResponseHeaders(int, long)
followed byHttpExchange.getResponseBody()
.void
Seejakarta.servlet.http.HttpServletResponse.setHeader(String, String)
-
Method Details
-
setHeader
Seejakarta.servlet.http.HttpServletResponse.setHeader(String, String)
-
sendHeadersAndGetBody
This is equivalent to callingHttpExchange.sendResponseHeaders(int, long)
followed byHttpExchange.getResponseBody()
.- Throws:
IOException
-