public static interface MetricsRequestHandler.Responder
| Modifier and Type | Method and Description |
|---|---|
void |
respondWith(int status,
String message,
Map<String,String> headers) |
void respondWith(int status,
String message,
Map<String,String> headers)
throws IOException
status - http status codemessage - message to be returnedheaders - a map of http headersIOException - this method may be implemented to throw an IOException.
In such case the MetricsRequestHandler.handleRequest(String, String, Stream, Responder) will propagate the exceptionCopyright © 2019. All rights reserved.