Table of Contents

Interface IBeforeRequestHook

Namespace
Styra.Opa.OpenApi.Hooks
Assembly
Styra.Opa.dll

BeforeRequestAsync hook is called before the SDK sends a request. The hook can modify the request before it is sent or throw an exception to stop the request from being sent.

public interface IBeforeRequestHook

Methods

BeforeRequestAsync(BeforeRequestContext, HttpRequestMessage)

Task<HttpRequestMessage> BeforeRequestAsync(BeforeRequestContext hookCtx, HttpRequestMessage request)

Parameters

hookCtx BeforeRequestContext
request HttpRequestMessage

Returns

Task<HttpRequestMessage>