public interface RequestOutcome
Context.onClose(ratpack.func.Action)
Modifier and Type | Method and Description |
---|---|
default Duration |
getDuration()
The amount of elapsed time between
Request.getTimestamp() and getSentAt() . |
Request |
getRequest()
The request.
|
SentResponse |
getResponse()
The response.
|
Instant |
getSentAt()
The time at when this request was dealt with from the application's point of view.
|
Request getRequest()
SentResponse getResponse()
Instant getSentAt()
After this instant, it may have taken further time to actually get the response bytes to the client. That is, this timestamp effectively denotes when application processing of the request finished.
default Duration getDuration()
Request.getTimestamp()
and getSentAt()
.
This is the wall clock time, not the CPU time. It does not include the time taken to send the response bytes to the client.