Prefix all Popsicle HTTP requests.
npm install popsicle-prefix --save
import { middleware, toFetch } from "popsicle";
import { Request } from "popsicle/dist/node";
import { auth } from "popsicle-prefix";
const fetch = toFetch([prefix("http://example.com"), middleware], Request);
fetch("/users.json"); //=> Request("http://example.com/users.json")
fetch("http://foo.com/users.json"); //=> Request("http://example.com/http://foo.com/users.json")
MIT