Popsicle middleware for setting a default
User-Agent
header.
npm install popsicle-user-agent --save
import { userAgent } from "popsicle-user-agent";
const middleware = compose([userAgent(), transport()]);
The only argument is the argument to set as the User-Agent
, defaults to Popsicle
.
This project is written using TypeScript and publishes the definitions directly to NPM.
MIT