@camunda8/sdk
Version:
[](https://www.npmjs.com/package/@camunda8/sdk)
24 lines (23 loc) • 857 B
TypeScript
import { Method } from 'got';
/**
*
* This function stores the call point from the application of got requests.
* This enables users to see where the error originated from.
*/
export declare const gotErrorHandler: (options: any, next: any) => any;
/**
* This function adds the call point to the error stack trace of got errors.
* This enables users to see where the error originated from.
*/
export declare const gotBeforeErrorHook: (error: any) => any;
/**
*
* This function is used on a 401 response to retry the request with a new token, one single time.
* https://github.com/camunda/camunda-8-js-sdk/issues/125
*/
export declare const makeBeforeRetryHandlerFor401TokenRetry: (getHeadersFn: any) => (context: any) => Promise<void>;
export declare const GotRetryConfig: {
limit: number;
methods: Method[];
statusCodes: number[];
};