function redirectPolicy(options = {}) {
    const { maxRetries = 20 } = options;
    return {
        name: redirectPolicyName,
        async sendRequest(request, next) {
            const response = await next(request);
            return handleRedirect(next, response, maxRetries);
        }
    };
}
/**
 * A policy to follow Location headers from the server in order
 * to support server-side redirection.
 * @param options - Options to control policy behavior.
 */
A policy to follow Location headers from the server in order
to support server-side redirection.
@param options - Options to control policy behavior.
A policy to follow Location headers from the server in order to support server - side redirection . @param options - Options to control policy behavior .
function redirectPolicy(options = {}) {
    const { maxRetries = 20 } = options;
    return {
        name: redirectPolicyName,
        async sendRequest(request, next) {
            const response = await next(request);
            return handleRedirect(next, response, maxRetries);
        }
    };
}
function redirectPolicy ( options = { } ) { const { maxRetries = 20 } = options ; return { name : redirectPolicyName , async sendRequest ( request , next ) { const response = await next ( request ) ; return handleRedirect ( next , response , maxRetries ) ; } } ; }
A policy to follow Location headers from the server in order
 to support server-side redirection.
A policy to follow Location headers from the server in order to support server - side redirection .