package
Popsicle middleware for following HTTP redirects
npm install popsicle-redirectsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
14.6 kB
Includes dependencies.
Popsicle middleware for following HTTP redirects.
npm install popsicle-redirects --saveimport { redirects } from "popsicle-redirects";
const middleware = redirects(transport());fn Wrap a throwback compatible middleware function in redirect behaviormaxRedirects Set the maximum number of redirects to attempt before throwing an error (default: 5)confirmRedirect Confirmation function for following 307 and 308 non-idempotent redirects (default: () => false)This project is written using TypeScript and publishes the definitions directly to NPM.
MIT