- Enclosing interface:
RequestListener
public static interface RequestListener.Event
The response event details.
-
Method Summary
Modifier and TypeMethodDescriptionrequest()
Return the related request.Return the related request body as string content if available.HttpResponse
<?> response()
Return the response.Return the response body as string content if applicable.long
Return the time from request to response in nanos.uri()
Return the URI for the request.
-
Method Details
-
responseTimeMicros
long responseTimeMicros()Return the time from request to response in nanos. -
uri
URI uri()Return the URI for the request. -
response
HttpResponse<?> response()Return the response. -
request
HttpRequest request()Return the related request. -
responseBody
String responseBody()Return the response body as string content if applicable.This is primarily here to assist logging of responses for trace purposes.
This will return null if the response is not String or byte array encoded string content. For example, when requests use response handlers for InputStream, Path, Stream etc this will return null.
-
requestBody
String requestBody()Return the related request body as string content if available.This is primarily here to assist logging of requests for trace purposes.
This will return null if the related request content was not String or byte array encoded string content.
-