From 9488dfc0617abba4d2dcb138885ac0850c07867f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 25 May 2018 15:31:33 +0200 Subject: [PATCH] feat(http-caching-proxy): initial implementation Implement an HTTP proxy with aggressive cache persisted on file system. This proxy is intended for integration tests to reduce the time needed to access real backends. --- CODEOWNERS | 1 + docs/apidocs.html | 1 + docs/site/MONOREPO.md | 1 + packages/http-caching-proxy/.npmrc | 1 + packages/http-caching-proxy/LICENSE | 25 ++ packages/http-caching-proxy/README.md | 101 ++++++++ packages/http-caching-proxy/docs.json | 7 + packages/http-caching-proxy/index.d.ts | 6 + packages/http-caching-proxy/index.js | 6 + packages/http-caching-proxy/index.ts | 8 + packages/http-caching-proxy/package.json | 60 +++++ .../src/http-caching-proxy.ts | 234 ++++++++++++++++++ packages/http-caching-proxy/src/index.ts | 6 + .../http-caching-proxy.integration.ts | 230 +++++++++++++++++ .../test/unit/http-caching-proxy.test.ts | 18 ++ .../http-caching-proxy/tsconfig.build.json | 8 + 16 files changed, 713 insertions(+) create mode 100644 packages/http-caching-proxy/.npmrc create mode 100644 packages/http-caching-proxy/LICENSE create mode 100644 packages/http-caching-proxy/README.md create mode 100644 packages/http-caching-proxy/docs.json create mode 100644 packages/http-caching-proxy/index.d.ts create mode 100644 packages/http-caching-proxy/index.js create mode 100644 packages/http-caching-proxy/index.ts create mode 100644 packages/http-caching-proxy/package.json create mode 100644 packages/http-caching-proxy/src/http-caching-proxy.ts create mode 100644 packages/http-caching-proxy/src/index.ts create mode 100644 packages/http-caching-proxy/test/integration/http-caching-proxy.integration.ts create mode 100644 packages/http-caching-proxy/test/unit/http-caching-proxy.test.ts create mode 100644 packages/http-caching-proxy/tsconfig.build.json diff --git a/CODEOWNERS b/CODEOWNERS index f6db6c9ab2db..33a3b7d27dcf 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -9,6 +9,7 @@ packages/authentication/* @bajtos @raymondfeng packages/boot/* @raymondfeng @virkt25 packages/build/* @bajtos @raymondfeng +packages/http-caching-proxy/* @bajtos packages/cli/* @raymondfeng @shimks packages/context/* @bajtos @raymondfeng packages/core/* @bajtos @raymondfeng diff --git a/docs/apidocs.html b/docs/apidocs.html index 5ea823019418..f64898157a70 100644 --- a/docs/apidocs.html +++ b/docs/apidocs.html @@ -19,6 +19,7 @@

List of packages