Skip to content

serviejs/popsicle-resolve

Repository files navigation

Popsicle Resolve

NPM version NPM downloads Build status Test coverage

Resolve Popsicle HTTP request URLs against a prefix.

Installation

npm install popsicle-resolve --save

Usage

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")

License

MIT

About

Resolve all Popsicle HTTP request URLs to a common prefix

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •