Resolve Popsicle HTTP request URLs against a prefix.
npm install popsicle-resolve --save
import { middleware, toFetch } from "popsicle";
import { Request } from "popsicle/dist/node";
import { resolve } from "popsicle-resolve";
const fetch = toFetch([resolve("http://example.com"), middleware], Request);
fetch("/users.json"); //=> Request("http://example.com/users.json")
MIT