modifyBeforeCompletion
open suspend fun modifyBeforeCompletion(context: ResponseInterceptorContext<Input, Output, ProtocolRequest?, ProtocolResponse?>): <Error class: unknown class><Output>
A hook called when an attempt is completed. This method has the ability to modify and return a new operation output or error.
When: This will ALWAYS be called once per execution.
Available Information: RequestInterceptorContext.request and ResponseInterceptorContext.response are ALWAYS available. ProtocolRequestInterceptorContext.protocolRequest and ProtocolResponseInterceptorContext.protocolResponse are available if the execution proceeded far enough for them to be generated.
Error Behavior: If errors are raised by this hook, execution will jump to readAfterExecution with the raised error as the ResponseInterceptorContext.response result.