readAfterExecution
open fun readAfterExecution(context: ResponseInterceptorContext<Input, Output, ProtocolRequest?, ProtocolResponse?>)
A hook called when an attempt is completed.
When: This will ALWAYS be called once per execution.
Available Information: ProtocolRequestInterceptorContext.protocolRequest and ProtocolResponseInterceptorContext.protocolResponse are only available if the execution proceeded far enough for them to be generated.
Error Behavior: Errors raised by this hook will be stored until all interceptors have had their readAfterExecution
hook invoked. If multiple interceptors raise an error in readAfterExecution
then the latest will be used and earlier ones will be logged and added as suppressed exceptions. The error will then be treated as the final response to the caller.