Fixes #612 - adds HTTP proxy support for `@import` inlining.
authorJule Marcoueille <marcou_j@btc.net>
Fri, 7 Aug 2015 17:34:32 +0000 (19:34 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 16 Aug 2015 08:57:05 +0000 (09:57 +0100)
commit34f62785e94fdc943586ce95472781d773e867a2
treef4e087ef74ce3261b12ab0bfe704deb6fce9f2e9
parented983e23739a413f0b96bf00ca8337af943027e2
Fixes #612 - adds HTTP proxy support for `@import` inlining.

By passing a full href to request proxy we can instruct it to
pass the request to the upstream server.

To use a proxy (via API), pass the proxy hostname and port to the
inliner options, e.g.

```javascript
new CleanCSS({
  inliner: {
    request: {
      hostname: 'proxy host',
      port: 'proxy port'
    }
  }
}).minify(...);
```

Specs by @jakubpawlowicz.
History.md
lib/imports/inliner.js
package.json
test/protocol-imports-test.js