popsicle-redirects

WebJar for popsicle-redirects

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

popsicle-redirects
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

popsicle-redirects
WebJar for popsicle-redirects
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/serviejs/popsicle-redirects

Download popsicle-redirects

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/popsicle-redirects/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>popsicle-redirects</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/popsicle-redirects/
implementation 'org.webjars.npm:popsicle-redirects:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/popsicle-redirects/
implementation ("org.webjars.npm:popsicle-redirects:1.1.0")
'org.webjars.npm:popsicle-redirects:jar:1.1.0'
<dependency org="org.webjars.npm" name="popsicle-redirects" rev="1.1.0">
  <artifact name="popsicle-redirects" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='popsicle-redirects', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "popsicle-redirects" % "1.1.0"
[org.webjars.npm/popsicle-redirects "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Popsicle Redirects

NPM version NPM downloads Build status Test 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

org.webjars.npm

ServieJS

Versions

Version
1.1.0