{"_id":"koa-better-http-proxy","_rev":"14-d718dcad59c91bcbfc41430269dbb1ed","name":"koa-better-http-proxy","description":"http proxy middleware for koa","dist-tags":{"latest":"0.2.10"},"versions":{"0.1.0":{"name":"koa-better-http-proxy","version":"0.1.0","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"3e02e37fb61c02ff6c84a0393fa6474b8e65e159","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.1.0","_shasum":"cdc970c139acde896880aa2ddcc1506d08ccfd2c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"cdc970c139acde896880aa2ddcc1506d08ccfd2c","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.1.0.tgz","integrity":"sha512-66nFCa+3QPLsAvMImKaxOTyi/FS8tVOBUqi2VXSmijF5Dr3lV3cwm4yXlYiz2jDLsWpqucdZKuA/0nrSWCpHIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEd+X1EzYEcpI+PgoLh3P9HyV/YVloyl1KjSKbiBqe2gIhAP07gEhlZJtmscCtMcO97z/RaKxx3Ho+TWvWIBh7U3jU"}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-better-http-proxy-0.1.0.tgz_1492784033544_0.07080780272372067"},"directories":{}},"0.2.0":{"name":"koa-better-http-proxy","version":"0.2.0","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"3ea3877e6afdd51ef2fc2f45881524abfaab8aeb","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.0","_shasum":"5d8a2c859542221a88acb29045882a3432b67ded","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"5d8a2c859542221a88acb29045882a3432b67ded","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.0.tgz","integrity":"sha512-aJL4NL+9NmKFQIeWWf69nmObyR6/thnoR1aSBLShTsLpnZBlY6ynrAgrF7i9TsS5I+1Pl4mpNVtRkHR4vwLFZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaGHjNB9uy85UFaYsONOiZLz2peVYRyE/WU6EANlnafgIhANzR6aF/DJQppzObq82kO+qKLiKK4mwXdBu4vcy1CoxA"}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-better-http-proxy-0.2.0.tgz_1492797910402_0.3845556655433029"},"directories":{}},"0.2.1":{"name":"koa-better-http-proxy","version":"0.2.1","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"3221b6633d2ce4c60bd9dfab0dbd71576ecea997","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.1","_shasum":"669b0e390fd5e0277b47ed77ae1ea7cebdda3ce0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"669b0e390fd5e0277b47ed77ae1ea7cebdda3ce0","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.1.tgz","integrity":"sha512-YTT1TGk1AG99mjLo7V+IZPscMWMf0JuFozthjUzhWorfZte/8DoJuQKQr+Q5Qyk3TFUdzo8DsZgN1MmK2xtoSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMQImsODv0YXkiFgYnEw2iVqq5ewvaeCKGq3NuWbAfvAIhAPicCRK0znsfG5OImzIYl00hZouUfEO4Kklfjjp1Asrq"}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koa-better-http-proxy-0.2.1.tgz_1493146038360_0.35093734227120876"},"directories":{}},"0.2.2":{"name":"koa-better-http-proxy","version":"0.2.2","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"a644fc886b1dc23ec0ed84f8328997b2dc959e2f","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.2","_shasum":"e86e3a67435c0f953f4548a742e00c72ecdb1ab7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"e86e3a67435c0f953f4548a742e00c72ecdb1ab7","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.2.tgz","integrity":"sha512-gOHtQYrg6gkVYe0GyS9kTXzdFEEDj0193rE+xNbMhdyOpKfORbG6xmkcRzzI27kWEs3DCGen1KFZbNxuZDUUgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDon1fL7o6MKCCx1BbjG3U0fKheXrFHjp9a3I45GyF3uAIhAMmZI9wYSi7lvdyuP+gYHthpHadeoW4ek/fqDBb7pCvq"}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-better-http-proxy-0.2.2.tgz_1493146966619_0.6328467868734151"},"directories":{}},"0.2.3":{"name":"koa-better-http-proxy","version":"0.2.3","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"4e2950742f31973449395a4a4369e3de96fc1723","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.3","_shasum":"1b9a1283b6df13413489ae2be3b400ec77595397","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"1b9a1283b6df13413489ae2be3b400ec77595397","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.3.tgz","integrity":"sha512-kOAvkxgm4d4HzbmpevKGqYnflRh+SajsDTqr6a20iyFoVkYxM8yrKsC3Vw3dAMBvP5Fy36or2dmg5ZOi3S7DCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV5iJvouolrRRaSD/tNgE8VtuOerJzLvq8iIyP8C9V8AIhAKGNwDdn1nocoTVmss32Zhn4xQZTTcPtBB0ncom2oKHf"}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy-0.2.3.tgz_1500915323525_0.4525843751616776"},"directories":{}},"0.2.4":{"name":"koa-better-http-proxy","version":"0.2.4","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"55bd33766e62d756e1b5926eedc84a1956efd193","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.4","_shasum":"613ea1d52623d3ef02fd64528ce042c1f6659cbb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"613ea1d52623d3ef02fd64528ce042c1f6659cbb","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.4.tgz","integrity":"sha512-XUGSBr8gZSWAcCBTZ9WhAD2qhfU3izdJT89s81LTB6LKiwKN20Y85J3fZMlJpcc/b1vs0sPJ9TYgJGX69/ZK4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgCwQ3e9FbS7H3YiTk4EhnlL6JsVQfArQZg1+ThyviBwIgFjQ1GVmzMQwkn7/8IApGSi0GIRAxOnc7vh9aTtl8LFc="}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy-0.2.4.tgz_1507292605879_0.5266883780714124"},"directories":{}},"0.2.5":{"name":"koa-better-http-proxy","version":"0.2.5","description":"http proxy middleware for koa","engines":{"node":">=6.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"0a79cff91e8a09debd31bc4f6f18e8edd9fd5955","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.5","_shasum":"4600ad491ff1ea7e2fece1ffa909405355cdfd5f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"dist":{"shasum":"4600ad491ff1ea7e2fece1ffa909405355cdfd5f","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.5.tgz","integrity":"sha512-HCVidGuAsYwtYeNJmfhdIZSwr8ak48qAwqvP7++dpUIpta+0Z2iWiwkVgDzqymCyo7hUUSd5Yu0XU70dAh2h8A==","fileCount":44,"unpackedSize":71321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjvOgCRA9TVsSAnZWagAAvxUQAI2C6UHe/LDQBmCfqUOj\nG4JXzQanYnzeM/rpcSNIIt7obS2FaOk02IdDT1wYi8wFQ7chl3FDu9cNjT+K\nZrCzbLXzsYNsw+IHj7Ybq764FR/ySgOaEvDD3YEBxm78OhpdEXCn/l3/6ItR\nyFaaHVJAJdlee93hoQPflzQ5oeD9I6D7QRnu0tKjdpl09Mr2U1YkxWus4sMz\nH+HEFDUYPPSUcR3f4//LrvuhqKOpbf8gt+thAzPyTz/OEk5D8C+DRWNxcXIT\nrPtEl54P6DbCnr2z3Rne+t6ZKUh+ZleHMYHHBiUUv4+eufVnWSPSPFXWygMO\nwd8hwn4cH6UgrZ5WrpzcWcNN8JxD0J5ANzzQZ2XVpK4n6kjnW5SDqOcFIcuq\nDBjJilxJU2Jd7WQWy5Aamivx1Q2+gKIRaZDPOmRlLu1QjPPNZaMiEobenmBI\nBem4fXzTG/Kc4bzhLu/E0bzplKpPqfvnfQgO21GwDgrlQ0HMaPsl64OBma48\nP5GIyR2vC9TYZ/ehaMKkMN60vErMTVQUdysuleJtkuuQZIJ4DtpNwsNViqNG\n61IoEWpFVKz5vwjLinu+5Jo+4b4GTyza2CfOj0YHy3lGo5asOhZ42CO+vP3U\nB0OULn7W573slGtssajZUKKkIEbDWwjm6dwVlu6QlO2UDq70kTw674f1Okpu\nP8TB\r\n=otun\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLzPaYUGAW4rA1d1FrYDR2sMg2LN+RKijq8ktdvuVziQIgHzwPUMIpBZnwyz7L+nz3qInD34CbgUWicj5z1/maAhI="}]},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy_0.2.5_1603204000388_0.9221070407619376"},"_hasShrinkwrap":false},"0.2.6":{"name":"koa-better-http-proxy","version":"0.2.6","description":"http proxy middleware for koa","engines":{"node":">=10.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"ba5c9e21c3afd8e24a6d886e6f7082a756a42cc8","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.6","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-7lYaZhDhXATpu3Iu9pSdWim2KCkVCJuUlKC1uS7yFPZbOnem+8dsrXMqIMy36kW6/Fj98JnGUm/zNg5JPZBQCA==","shasum":"1426c1ab213bbdd5d1e565838fe5380386d05ba3","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.6.tgz","fileCount":44,"unpackedSize":71962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCt0ICRA9TVsSAnZWagAAFM0QAJcyvpRZ6MkRzeUDt6Qo\n4E6VAJC2eEx4m/dh7mp8V+Ps0Rq4JBENglcd8IQVFz2T5vByQIcR6XM7E+fL\nO+Cfixb2xfRSOvYoDH6i4cBwbiwNmsisJwlioqtTU3qVYLmpNGoszN4SdObA\n+bOtQNiLSNDglC8aUK/YCaahnEz5PX0Bxp8uHCiD67jqy2uIDqXyn7Gxp5VO\n5pPnawFUjHEOK0b92ckt+9V45HxuiwT/ClSwBdfZRDSozJLmbPg7xyxRhRXH\nxafHcTKoxq+sWLXuGnO1twvTH6sQomEvR7PpvmUmtKvJxzHGJQTaFe46Acwl\nTDel6tmUX9vdFJVry0aqvu6GYsqkaR914gkhMXc3aOJ8n2RqHBplI5XcYbti\noPoKGVSvuq4U6PqkFOQjnyCfX60ykVVeU9VoMxKDgv/t6BY/BFM+VqKemhGm\n6hebgvH1+//pPAPG1d854E/HeMXPh3S6IKvWXSp0tdqFOrvZ9+dE+J8FoqMk\nPdY5R4GyXdp9h991be20kOrtcYulH5VY+Qd9tXqPj1FbKsHIpxiH6imatzop\nHMclW/c7LDlaGEhZjcbhgpCoOVvbrrlogjV4e6+aaqU4SZcsM9Dn0F+yzbZi\n9F3NwCaETU9XCBNgAsq7qxszKCC85CQA+kKv94rtPSHJIKFRixLxv4Z45bU9\nCXX3\r\n=YTks\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbfaWdg0Xk+jFMh+ZRBAM7YEqM4OflIMKbk8crYGO0uAIgGkwwygihqAY2L3mSOpyv7neOeJT8UbtAFPq1uFa2Gj4="}]},"_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"directories":{},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy_0.2.6_1611324680021_0.1992679056448281"},"_hasShrinkwrap":false},"0.2.7":{"name":"koa-better-http-proxy","version":"0.2.7","description":"http proxy middleware for koa","engines":{"node":">=10.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"1994e02d2bbaf7f097059a8fe6139da001be6196","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.7","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Mc9UTpyLBazMAmsnHFRkGWLKTpTBAHkPYRfbR11QEdjFDJzX+sJQGVc0xoACvDyiFe39kDUepWuJI1BhtQ/SCQ==","shasum":"f63b476a460efa72c5f3b64da7de01585d82aa8d","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.7.tgz","fileCount":44,"unpackedSize":72438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCt7tCRA9TVsSAnZWagAA8EoP/2268tj6HV9SujD+DOZ1\nvYk8yCi/yrz/+Vs7qMuOaZzDFusPQ08Gt4to+4uU9KPYQ48wt0qL+Ew9OiWJ\nghOgyi0Z+pAyAqUGwdGxot7XU2pMduQJNoRkGD1jEq8E4PASOzxWc4fq7yNX\nh/9F5Sn8q6kvTlOVfqb35oXa0KRgsmUsEFxnmUPJ3YphDNTjy7c+/34KQ6tm\n/kqy4t0wHI/tU5YzfbkGT3NsCV6p/FJXgHdpVX0vV/63/MIg3cwM/BxdpIC0\nhfYFsKzvfSqe6bYREYolzeMnRyN91Iuu1p68MXQY+VzK1Zz8QGA05ebqzD97\n1F/KhAYwA7SGgPYcRTHSkralyi2Q924geaxfZ5bPOTIKufM1CjyJEsO6kMe5\nxBekekbSJPFSwdMjhV/n5EbxZjHwvmFm5lh8lYrjmsAYdPT9CfeKAK1JjgR3\n2EVpgRfvw+hYtLgXTDAQtB/iCaKRxx2XlukWdvCbQ7qmZVLoskVoOMfkZW+a\n6aNcT9Tj843yT7CYVZ6X6I1ypbpN0HJKLyuXueoZoM6l2bC0ZOfSGrrzr+L2\nQWrEjnrDeAh6292p/D2uLmj64gJ3NkugbuAKiSX4/vXNVOFS5bdEXrptBrKF\nw41tyx22fsuip9tHqQ8cpnPb4qsN2/T33YLkB4gEJ2kAP4mDRxsDYHHVi2zh\nyk3P\r\n=tLZQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICOzg0QHqBss14riqiBgZzVMKO5WpOyVcbT9tj45p0SxAiEA2W8omg0il/4usXt8zPGTuvlXdr1ADJxgU5V/YXY2fg0="}]},"_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"directories":{},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy_0.2.7_1611325165102_0.14054065593694864"},"_hasShrinkwrap":false},"0.2.8":{"name":"koa-better-http-proxy","version":"0.2.8","description":"http proxy middleware for koa","engines":{"node":">=10.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"6b8b896152e296bd6a429a85e02c0dd8f6e6d57e","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.8","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-/GyMkdkkqiAbwM6pc/zhIqu9HMQB0+TBjuvvL3wMQOKkwgR9P2AKBZ/S+gRHc+xLjNk5iW0NxR2vwyAI3RHz2g==","shasum":"57ef2d43726e2c6e1701efccf9b832c6f55f0204","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.8.tgz","fileCount":44,"unpackedSize":72461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEZqDCRA9TVsSAnZWagAAWEMP/18vw+DFQBw+wuZ0xkTF\nxJO98GLmsEsOExUm2l4C8+Owo0WSUWtgHo8NNoX0qgFihVV8ULaUAGIYaSRU\nufEtFb9HZMWEI4OzEeS0Gs3eNwy/uV6TcnK3BkR1WggT74TJk56MkccijyJm\nPxugaMk55nGVCGTJAWfTLeTi2d4cMfN8+s1mUhlSC5W1fUrgaDIXlkVuAyXu\ntMZbig2qB2g33guFpG1t+W+V9jMqrQ4Ifs6g2dO9cLnkbaKi2EsjTrOAsYe4\nPg3HNuFg2fsup7ZxLEIKbYuJ66uSY6LYKOIJnCmQH04bBQszyGRg0+xb1RQK\nRsFMIU9Ea1bx0ntoJu8iogHd3t8KmOn7+T8/lqYxf9MWZSHCkxZo/r0yR58m\nlOuHSamD7o3YnlraSY8BTNyW+YXgX6leoo0inR5+BgSrzE373UrpeRvUo8Cg\n/HPmUCEcLJbltAcKo5PEQrO4DugvzIdZQ47JnsH5T2w/hklSHAOrRHajZtrs\nkJGnkNtJbkUe3PSYIXju0uM/SNjbTG573MRxXZopn2q/ltSPrzWp5rC6LdJE\nMmtVDLqndG238drv4ZmT18y8ce7pnKqCuVFH1l6TcaaoL2KMkszQ/8h6egQA\njzQHhXa+eDSAxVUTMV+VrPBw3yOoC2oiNtdEyvUzxFb/ssuOW/ZaGxMaW5FZ\npIa5\r\n=xrvj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI5lIl/YOjKW0WADko5tYCgmShXOMrKzxhBi04+lGFeAiEAwTv0t1ekvjyo1diE/4G4uZhxpgML+rzAkbFl7RxG1bw="}]},"_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"directories":{},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy_0.2.8_1611766402417_0.1233747848956881"},"_hasShrinkwrap":false},"0.2.9":{"name":"koa-better-http-proxy","version":"0.2.9","description":"http proxy middleware for koa","engines":{"node":">=10.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0","winston":"^2.3.1"},"contributors":[],"gitHead":"97fab4f7846dff041c138bbdca42658a287dcda0","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.9","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-v33AKm5WZw09cI0FSLbEPG0l7sAMDuwvm9ACgFp21GEQ2ekrx2ODQZ9N6dohi6XSMlLafJvwfoHKdeoE6oH9vQ==","shasum":"4238a37b4d8312b1064d682e6828bd84a511f65c","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.9.tgz","fileCount":44,"unpackedSize":72824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSmW0CRA9TVsSAnZWagAANBQQAImn/U70dqzMrEV3u32h\n42eheLdsT2aBEvCIdmBJ6ycf41MiAhfqCbGGr3RZIYKSSOq85+LAq2+Z9CR+\nu+UOdLmRuRdsoGm0f7B825Y0RtjRTb11V7+q5N8uyxUNL5h2vIdzgyZVEO0q\n9kNJv2UIVi2L//OB/gxJ3SeHd8OoUrJ4r2l1PHL4YC5BKX7kA+1brL4aMpHh\nhiUWmsgSCMY/C/FgUqre04bcHASulhf4qi4ttCf2Yt0fCApT94MWhgU1ArRH\nfcmAkypkSJOTCmv+0B+iHM1Kz26BPqLFK2QEfotTru8XArNI0eeaAGwQTVng\nzaw7GRdpd7r0YQ+SwiLxFKZF7QHIQ/FLJvYWW9FQu653bCZfamyb9JWcnIz9\nPwcxoqkkh/gaWT2+0j+Q1Auc/ed2pEZryc+42ahy+OkdA5xrWsOFVPVv2PAB\nGchsTjeg4PCmAGVQ5En9Wtmr2PQwKYjzo+68rgCExSB0Ot1LKg4Y49NeUm9a\nt2aQEjNH2ScnlF9EzTpxE3aPhdZ4yFrSXyrK4RtIDryRAU/Q28mIAQDLnhQy\nOKIWYc0NJbV3jKtMun6MNFA8U/zRQQEyZ5xEqW2BTXd1PDuAUhg6aEo2UGL2\n6mMJOLGLJ8DWYT/1rO6yWoGbbwwvBVTwhuqKkUsInlWxf9nmRbkS8rxGcRdT\n1E3Y\r\n=iJfU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICh++PGfMSLJeAK8vafCn5YGXumfDXZdwFWk/5XOGJiDAiEAhsxB2KV+9ur6covzcL9slbhjW+TZb5EF15MsnEtvRIY="}]},"_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"directories":{},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy_0.2.9_1615488435964_0.7213416381128082"},"_hasShrinkwrap":false},"0.2.10":{"name":"koa-better-http-proxy","version":"0.2.10","description":"http proxy middleware for koa","engines":{"node":">=10.0.0"},"engineStrict":true,"main":"index.js","scripts":{"test":"npm -s run mocha && npm run -s lint && npm run -s jscs","test:debug":"mocha debug -R spec test --recursive","mocha":"mocha -R spec test --recursive","lint":"jshint index.js test/*.js test/**/*js lib/*js app/**/*js ","jscs":"jscs index.js test/*.js test/**/*js lib/*js app/**/*js"},"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"types":"types.d.ts","keywords":["koa-better-http-proxy"],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"devDependencies":{"body-parser":"^1.17.1","chai":"^3.5.0","cookie-parser":"^1.4.3","express":"^4.15.2","jscs":"^3.0.7","jshint":"^2.9.4","koa":"^2.2.0","mocha":"^2.1.0","supertest":"^1.2.0"},"dependencies":{"es6-promise":"^3.3.1","raw-body":"^2.2.0"},"contributors":[],"gitHead":"c5bcd8c7be6cc30ce68dadd3e622b0f3cf54fac2","homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","_id":"koa-better-http-proxy@0.2.10","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-i47bpzbMFOMvPoM7sUovsIfepPSDNZpNVV4expEER2wWaCGWLTRcWfx/wVOKA3gJLMdLLwzx9tZlyF5EGC1ZYg==","shasum":"b739588d443199888e9fffcdba65c7475957eecc","tarball":"https://registry.npmjs.org/koa-better-http-proxy/-/koa-better-http-proxy-0.2.10.tgz","fileCount":44,"unpackedSize":72800,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEX5fNwp/8WZdXhz/K+AlWlXwReFPa78nDj2tB8xHcCAAiBhAxD6mCnwpninLMvVZGYjbIUn+ReAR3aI5WUN9gzWWQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiat2kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3XA//Y+QE2JE7at2C7+1nKyILsvFTcBY2MgJeQ/5HXDvdL4JXnM2a\r\n15MrR1WmBcSy5Tyw6B6L/CuxR0Nh6ihxcPSij0TRn5iSlhE+5AAl5E60Y3Bq\r\nhGvFejkwA6MCC71sz5pgYB1gpmbF7tpQwppXPdY1RMXlt3yaR60ChUZI/0vw\r\nyRVwYqg1d4F0x6h2o6i4ocG8mZdUcfj02KQErqcAlOqOYoqxgDU6PQ2crumR\r\ndGpD0/fheIVCGjsCnJSM0MEVYG9UaZSFE/MNRZ4ipTy5JE9xPudjVq6M4u3/\r\nZNhRE6XS8DzhMZnG4WCtYBNbRfGCX3QazHiyvIEkfgHV7nnkylwYEmf+5IVM\r\nxAb+t6FpcxB6+OIt7PRd6QukqUMnVKF1vOOPb/l4wxczr8VasJzE/xpdTw6a\r\nET4nEb0JpSWHqZ9+ttnhtVFZc0p3h3FYRJEIJzvZuvQ2ArxKrqJYj5K2OeLb\r\n56HTx+jC3pJNt7+imfokETmfyfUPfYE+mqhOuzd44ovDqD5dxUYPKDbaQhKb\r\nDhB7pqye93G5gtA4fFMz9zDcEJyhdMJINAF+J7ZDGG7uX2rVa1k1Y8foS4be\r\n7Ap5PNNYIoJdPT4yGB1hBfrHDIMZ0tI38B50vsHUrBfrEVgzb0+Dm3ES/FCP\r\nOAC/O7hedlvL8ss932ESOHkwlvUTiCAMFvU=\r\n=7EIO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"directories":{},"maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-better-http-proxy_0.2.10_1651170724582_0.04961370053666947"},"_hasShrinkwrap":false}},"readme":"# koa-better-http-proxy [![Build Status](https://travis-ci.org/nsimmons/koa-better-http-proxy.svg?branch=master)](https://travis-ci.org/nsimmons/koa-better-http-proxy) [![Downloads](https://img.shields.io/npm/dm/koa-better-http-proxy.png?style=flat-square)](https://www.npmjs.com/package/koa-better-http-proxy)\n<a href=\"https://communityinviter.com/apps/koa-js/koajs\" rel=\"KoaJs Slack Community\">![KoaJs Slack](https://img.shields.io/badge/Koa.Js-Slack%20Channel-Slack.svg?longCache=true&style=for-the-badge)</a>\n\nKoa middleware to proxy request to another host and pass response back. Based on [express-http-proxy](https://github.com/villadora/express-http-proxy).\n\n## Install\n\n```bash\n$ npm install koa-better-http-proxy --save\n```\n\n## Usage\n```js\nproxy(host, options);\n```\n\nTo proxy URLS to the host 'www.google.com':\n\n```js\nvar proxy = require('koa-better-http-proxy');\nvar Koa = require('koa');\n\nvar app = new Koa();\napp.use(proxy('www.google.com'));\n```\n\nIf you wish to proxy only specific paths, you can use a router middleware to accomplish this. See [Koa routing middlewares](https://github.com/koajs/koa/wiki#routing-and-mounting).\n\n### Options\n\n#### agent\n\nUse a custom `http.Agent` for proxy requests.\n\n```js\nvar agent = new http.Agent(options);\napp.use(proxy('www.google.com', {\n  agent: agent,\n}));\n```\n\n#### port\n\nThe port to use for the proxied host.\n\n```js\napp.use(proxy('www.google.com', {\n  port: 443\n}));\n```\n\n#### headers\n\nAdditional headers to send to the proxied host.\n\n```js\napp.use(proxy('www.google.com', {\n  headers: {\n    'X-Special-Header': 'true'\n  }\n}));\n```\n\n\n#### strippedHeaders\n\nHeaders to remove from proxy response.\n\n```js\napp.use(proxy('www.google.com', {\n  strippedHeaders: [\n    'set-cookie'\n  ]\n}));\n```\n\n#### preserveReqSession\n\nPass the session along to the proxied request\n\n```js\napp.use(proxy('www.google.com', {\n  preserveReqSession: true\n}));\n```\n\n#### proxyReqPathResolver (supports Promises)\n\nProvide a proxyReqPathResolver function if you'd like to\noperate on the path before issuing the proxy request.  Use a Promise for async\noperations.\n\n```js\napp.use(proxy('localhost:12345', {\n  proxyReqPathResolver: function(ctx) {\n    return require('url').parse(ctx.url).path;\n  }\n}));\n```\n\nPromise form\n\n```js\napp.use(proxy('localhost:12345', {\n  proxyReqPathResolver: function(ctx) {\n    return new Promise(function (resolve, reject) {\n      setTimeout(function () {   // do asyncness\n        resolve(fancyResults);\n      }, 200);\n    });\n  }\n}));\n```\n\n#### filter\n\nThe ```filter``` option can be used to limit what requests are proxied.  Return ```true``` to execute proxy.\n\nFor example, if you only want to proxy get request:\n\n```js\napp.use(proxy('www.google.com', {\n  filter: function(ctx) {\n     return ctx.method === 'GET';\n  }\n}));\n```\n\n#### userResDecorator (supports Promise)\n\nYou can modify the proxy's response before sending it to the client.\n\n##### exploiting references\nThe intent is that this be used to modify the proxy response data only.\n\nNote:\nThe other arguments (proxyRes, ctx) are passed by reference, so\nyou *can* currently exploit this to modify either response's headers, for\ninstance, but this is not a reliable interface. I expect to close this\nexploit in a future release, while providing an additional hook for mutating\nthe userRes before sending.\n\n#### userResHeadersDecorator (supports Promise)\n\nYou can modify the proxy's headers before sending it to the client.\n\n##### gzip responses\n\nIf your proxy response is gzipped, this program will automatically unzip\nit before passing to your function, then zip it back up before piping it to the\nuser response.  There is currently no way to short-circuit this behavior.\n\n```js\napp.use(proxy('www.google.com', {\n  userResDecorator: function(proxyRes, proxyResData, ctx) {\n    data = JSON.parse(proxyResData.toString('utf8'));\n    data.newProperty = 'exciting data';\n    return JSON.stringify(data);\n  }\n}));\n```\n\n```js\napp.use(proxy('httpbin.org', {\n  userResDecorator: function(proxyRes, proxyResData) {\n    return new Promise(function(resolve) {\n      proxyResData.funkyMessage = 'oi io oo ii';\n      setTimeout(function() {\n        resolve(proxyResData);\n      }, 200);\n    });\n  }\n}));\n```\n\n#### limit\n\nThis sets the body size limit (default: `1mb`). If the body size is larger than the specified (or default) limit,\na `413 Request Entity Too Large`  error will be returned. See [bytes.js](https://www.npmjs.com/package/bytes) for\na list of supported formats.\n\n```js\napp.use(proxy('www.google.com', {\n  limit: '5mb'\n}));\n```\n\n#### proxyReqOptDecorator  (supports Promise form)\n\nYou can mutate the request options before sending the proxyRequest.\nproxyReqOpt represents the options argument passed to the (http|https).request\nmodule.\n\nNOTE:  req.path cannot be changed via this method;  use ```proxyReqPathResolver``` instead.\n\n```js\napp.use(proxy('www.google.com', {\n  proxyReqOptDecorator: function(proxyReqOpts, ctx) {\n    // you can update headers\n    proxyReqOpts.headers['content-type'] = 'text/html';\n    // you can change the method\n    proxyReqOpts.method = 'GET';\n    return proxyReqOpts;\n  }\n}));\n```\n\nYou can use a Promise for async style.\n\n```js\napp.use(proxy('www.google.com', {\n  proxyReqOptDecorator: function(proxyReqOpts, ctx) {\n    return new Promise(function(resolve, reject) {\n      proxyReqOpts.headers['content-type'] = 'text/html';\n      resolve(proxyReqOpts);\n    })\n  }\n}));\n```\n\n#### proxyReqBodyDecorator  (supports Promise form)\n\nYou can mutate the body content before sending the proxyRequest.\n\n```js\napp.use(proxy('www.google.com', {\n  proxyReqBodyDecorator: function(bodyContent, ctx) {\n    return bodyContent.split('').reverse().join('');\n  }\n}));\n```\n\nYou can use a Promise for async style.\n\n```js\napp.use(proxy('www.google.com', {\n  proxyReqBodyDecorator: function(proxyReq, ctx) {\n    return new Promise(function(resolve, reject) {\n      http.get('http://dev/null', function (err, res) {\n        if (err) { reject(err); }\n        resolve(res);\n      });\n    })\n  }\n}));\n```\n\n#### https\n\nNormally, your proxy request will be made on the same protocol as the original\nrequest.  If you'd like to force the proxy request to be https, use this\noption.\n\n```js\napp.use(proxy('www.google.com', {\n  https: true\n}));\n```\n\n#### preserveHostHdr\n\nYou can copy the host HTTP header to the proxied express server using the `preserveHostHdr` option.\n\n```js\napp.use(proxy('www.google.com', {\n  preserveHostHdr: true\n}));\n```\n\n#### parseReqBody\n\nThe ```parseReqBody``` option allows you to control parsing the request body.\nFor example, disabling body parsing is useful for large uploads where it would be inefficient\nto hold the data in memory.\n\nThis defaults to true in order to preserve legacy behavior.\n\nWhen false, no action will be taken on the body and accordingly ```req.body``` will no longer be set.\n\nNote that setting this to false overrides ```reqAsBuffer``` and ```reqBodyEncoding``` below.\n\n```js\napp.use(proxy('www.google.com', {\n  parseReqBody: false\n}));\n```\n\n#### reqAsBuffer\n\nNote: this is an experimental feature.  ymmv\n\nThe ```reqAsBuffer``` option allows you to ensure the req body is encoded as a Node\n```Buffer``` when sending a proxied request.   Any value for this is truthy.\n\nThis defaults to to false in order to preserve legacy behavior. Note that\nthe value of ```reqBodyEnconding``` is used as the encoding when coercing strings\n(and stringified JSON) to Buffer.\n\nIgnored if ```parseReqBody``` is set to false.\n\n```js\napp.use(proxy('www.google.com', {\n  reqAsBuffer: true\n}));\n```\n\n#### reqBodyEncoding\n\nEncoding used to decode request body. Defaults to ```utf-8```.\n\nUse ```null``` to preserve as Buffer when proxied request body is a Buffer. (e.g image upload)\nAccept any values supported by [raw-body](https://www.npmjs.com/package/raw-body#readme).\n\nThe same encoding is used in the userResDecorator method.\n\nIgnored if ```parseReqBody``` is set to false.\n\n```js\napp.use(proxy('httpbin.org', {\n  reqBodyEncoding: null\n}));\n```\n\n#### connectTimeout\n\nBy default, node does not express a timeout on connections.\nUse connectTimeout option to impose a specific timeout on the inital connection. (`connect` for http requests and `secureConnect` for https)\nThis is useful if there are dns, network issues, or if you are uncertain if the destination is reachable.\nTimed-out requests will respond with 504 status code and a X-Timeout-Reason header.\n\n```js\napp.use(proxy('httpbin.org', {\n  connectTimeout: 2000  // in milliseconds, two seconds\n}));\n```\n\n\n#### timeout\n\nBy default, node does not express a timeout on connections.\nUse timeout option to impose a specific timeout. This includes the time taken to make the connection and can be used with or without `connectTimeout`.\nTimed-out requests will respond with 504 status code and a X-Timeout-Reason header.\n\n```js\napp.use(proxy('httpbin.org', {\n  timeout: 2000  // in milliseconds, two seconds\n}));\n```\n","maintainers":[{"name":"nsimmons","email":"nick.simmons.514@gmail.com"}],"time":{"modified":"2022-06-19T09:11:43.387Z","created":"2017-04-21T14:13:53.777Z","0.1.0":"2017-04-21T14:13:53.777Z","0.2.0":"2017-04-21T18:05:10.629Z","0.2.1":"2017-04-25T18:47:20.279Z","0.2.2":"2017-04-25T19:02:46.876Z","0.2.3":"2017-07-24T16:55:24.595Z","0.2.4":"2017-10-06T12:23:26.865Z","0.2.5":"2020-10-20T14:26:40.540Z","0.2.6":"2021-01-22T14:11:20.133Z","0.2.7":"2021-01-22T14:19:25.210Z","0.2.8":"2021-01-27T16:53:22.699Z","0.2.9":"2021-03-11T18:47:16.092Z","0.2.10":"2022-04-28T18:32:04.831Z"},"homepage":"https://github.com/nsimmons/koa-better-http-proxy#readme","keywords":["koa-better-http-proxy"],"repository":{"type":"git","url":"git://github.com/nsimmons/koa-better-http-proxy.git"},"contributors":[],"author":{"name":"nsimmons","email":"nick.simmons.514@gmail.com"},"bugs":{"url":"https://github.com/nsimmons/koa-better-http-proxy/issues"},"license":"MIT","readmeFilename":"README.md"}