Class HttpExchangeAdapter.HttpResponse
Object
HttpResponse
- All Implemented Interfaces:
PrometheusHttpResponse
- Enclosing class:
HttpExchangeAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendHeadersAndGetBody(int statusCode, int contentLength) This is equivalent to callingHttpExchange.sendResponseHeaders(int, long)followed byHttpExchange.getResponseBody().voidSeejakarta.servlet.http.HttpServletResponse.setHeader(String, String)
-
Constructor Details
-
HttpResponse
public HttpResponse()
-
-
Method Details
-
setHeader
Description copied from interface:PrometheusHttpResponseSeejakarta.servlet.http.HttpServletResponse.setHeader(String, String)- Specified by:
setHeaderin interfacePrometheusHttpResponse
-
sendHeadersAndGetBody
Description copied from interface:PrometheusHttpResponseThis is equivalent to callingHttpExchange.sendResponseHeaders(int, long)followed byHttpExchange.getResponseBody().- Specified by:
sendHeadersAndGetBodyin interfacePrometheusHttpResponse- Throws:
IOException
-