popsicle-redirects
Popsicle middleware for following HTTP redirects
Last updated 5 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install popsicle-redirects 
SYNC missed versions from official npm registry.

Popsicle Redirects

NPM version NPM downloads Build status Build coverage

Popsicle middleware for following HTTP redirects.

Installation

npm install popsicle-redirects --save

Usage

import { redirects } from "popsicle-redirects";

const middleware = redirects(transport());

Options

  • fn Wrap a throwback compatible middleware function in redirect behavior
  • maxRedirects 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)

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Current Tags

  • 1.1.1                                ...           latest (5 years ago)

4 Versions

  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 3
Last Month 4
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE