Table of Contents

Interface IAfterSuccessHook

Namespace
Styra.Opa.OpenApi.Hooks
Assembly
Styra.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 AfterSuccessContext
response HttpResponseMessage

Returns

Task<HttpResponseMessage>