Interface IBeforeRequestHook
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
BeforeRequestContextrequest
HttpRequestMessage