1.1.1 • Published 4 years ago
popsicle-redirects v1.1.1
Popsicle Redirects
Popsicle middleware for following HTTP redirects.
Installation
npm install popsicle-redirects --saveUsage
import { redirects } from "popsicle-redirects";
const middleware = redirects(transport());Options
fnWrap athrowbackcompatible middleware function in redirect behaviormaxRedirectsSet the maximum number of redirects to attempt before throwing an error (default:5)confirmRedirectConfirmation function for following 307 and 308 non-idempotent redirects (default:() => false)
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
MIT