Skip to main content

Function: createAxiosRequestInterceptor()

createAxiosRequestInterceptor(__namedParameters): CreateAxiosRequestInterceptorResponse

Creates an Axios interceptor for encryption. This function is designed to be used with Axios interceptors to encrypt request data before sending. It encrypts the request path, headers, and body if they exist.

Parameters

__namedParameters

CreateAxiosRequestInterceptorParams

Returns

CreateAxiosRequestInterceptorResponse

  • A function that takes an Axios request configuration and returns a promise that resolves to the modified configuration.