Interface IAfterSuccessHook
- Namespace
- OpenPolicyAgent.Opa.OpenApi.Hooks
- Assembly
- OpenPolicyAgent.Opa.dll
AfterSuccessAsync is called after the SDK receives a response. The hook can modify the response before it is handled or throw an exception to stop the response from being handled.
public interface IAfterSuccessHook
Methods
AfterSuccessAsync(AfterSuccessContext, HttpResponseMessage)
Task<HttpResponseMessage> AfterSuccessAsync(AfterSuccessContext hookCtx, HttpResponseMessage response)
Parameters
hookCtx
AfterSuccessContextresponse
HttpResponseMessage