{"_id":"@remix-run/fetch-proxy","_rev":"16-34e0b9727725ef70f6fe71257df26ee5","name":"@remix-run/fetch-proxy","dist-tags":{"latest":"1.0.0"},"versions":{"0.5.0":{"name":"@remix-run/fetch-proxy","version":"0.5.0","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.5.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"},{"name":"chancestrickland","email":"hi@chance.dev"}],"homepage":"https://github.com/remix-run/remix/tree/v3/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"b2ea3943af3e40bcd0771d2c3b2cab04c1aff304","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.5.0.tgz","fileCount":13,"integrity":"sha512-/glhuYPixGX2jVEnokW7c92l7FOh3AV8txF+czPJ8lIwEZxKUFDoYKR5AQ/fSpzTUug51lM0NOueace1vuRoqQ==","signatures":[{"sig":"MEYCIQDMve1/JxwhC+VP6olGg11GoESUYLPZ9LWe+Lwkc+ffrgIhALl+QbRKsOyDmhhWvU1xaHMeRLz+GU+8xnuh/z+q5bz5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56484},"main":"dist/fetch-proxy.cjs","type":"module","_from":"file:remix-run-fetch-proxy-0.5.0.tgz","types":"dist/fetch-proxy.d.ts","module":"dist/fetch-proxy.js","exports":{".":{"types":"./dist/fetch-proxy.d.ts","import":"./dist/fetch-proxy.js","default":"./dist/fetch-proxy.js","require":"./dist/fetch-proxy.cjs"},"./package.json":"./package.json"},"scripts":{"test":"node --disable-warning=ExperimentalWarning --test ./src/**/*.test.ts","build":"pnpm run clean && pnpm run build:types && pnpm run build:esm && pnpm run build:cjs","clean":"rm -rf dist","build:cjs":"esbuild src/fetch-proxy.ts --bundle --outfile=dist/fetch-proxy.cjs --format=cjs --platform=neutral --sourcemap","build:esm":"esbuild src/fetch-proxy.ts --bundle --outfile=dist/fetch-proxy.js --format=esm --platform=neutral --sourcemap","build:types":"tsc --project tsconfig.build.json"},"_npmUser":{"name":"mjackson","email":"mjijackson+npm@gmail.com"},"_resolved":"/private/var/folders/n5/1lxhnzk56hg6b7vnl558364m0000gn/T/0c41ddfeb8f29001cb418ac5689aa286/remix-run-fetch-proxy-0.5.0.tgz","_integrity":"sha512-/glhuYPixGX2jVEnokW7c92l7FOh3AV8txF+czPJ8lIwEZxKUFDoYKR5AQ/fSpzTUug51lM0NOueace1vuRoqQ==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.4.2","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.2.0","dependencies":{"@remix-run/headers":"^0.12.0"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.5","@types/node":"^20.14.10"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.5.0_1753385278006_0.17690193709281976","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@remix-run/fetch-proxy","version":"0.6.0","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.6.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"0e9996784c24a72cb6c46e80f60b0b78b8be5a75","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.6.0.tgz","fileCount":11,"integrity":"sha512-JA35ny/2Wh8kB/t8qc7Ak1gSqz3/w0m+XnYPQYYAq88SXm7d1EXJSjs3gzjOdd/O/dm+ElSo9v0PFR1sfxJ2BA==","signatures":[{"sig":"MEQCIH6nlKkl/qDub4maA+40p6QBXheQM9WqB6b9SkgubO1zAiBJAuQjJZyFiFfy+h4CN51rDooS/EEqETuICOZYIegv3g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32948},"type":"module","_from":"file:remix-run-fetch-proxy-0.6.0.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"node --disable-warning=ExperimentalWarning --test './src/**/*.test.ts'","build":"pnpm run clean && pnpm run build:types && pnpm run build:esm","clean":"rm -rf dist","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=neutral --sourcemap","typecheck":"tsc --noEmit","build:types":"tsc --project tsconfig.build.json"},"_npmUser":{"name":"mjackson","email":"mjijackson+npm@gmail.com"},"_resolved":"/tmp/a6553eed66554024a19507815003cbd4/remix-run-fetch-proxy-0.6.0.tgz","_integrity":"sha512-JA35ny/2Wh8kB/t8qc7Ak1gSqz3/w0m+XnYPQYYAq88SXm7d1EXJSjs3gzjOdd/O/dm+ElSo9v0PFR1sfxJ2BA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.6.1","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.10.0","dependencies":{"@remix-run/headers":"^0.14.0"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.10","@types/node":"^24.6.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.6.0_1761152597296_0.3296994592297724","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@remix-run/fetch-proxy","version":"0.7.0","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.7.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"f00e1be22bccfd1190110cdb474235389bda2a44","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.7.0.tgz","fileCount":11,"integrity":"sha512-fIy3tiMHtzIJNNk1lsi0ZEpKFL7E7LLDRHEGkDK/DMDhwjt0iQ1opGnMfSYViTZnouVSsqB7rM3sKsIqx299tQ==","signatures":[{"sig":"MEYCIQCwQUo5dpYG8T8h4pMx/gkHk5ffFJ6yRUE4bTFJIyqsDQIhAMz5FypQWKax8gnqr7JfiRHOoqYbGWLjWV3f5jqyohVi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14216},"type":"module","_from":"file:remix-run-fetch-proxy-0.7.0.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"node --disable-warning=ExperimentalWarning --test './src/**/*.test.ts'","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/ae50caa22267e6f6c571ca83ab4056d2/remix-run-fetch-proxy-0.7.0.tgz","_integrity":"sha512-fIy3tiMHtzIJNNk1lsi0ZEpKFL7E7LLDRHEGkDK/DMDhwjt0iQ1opGnMfSYViTZnouVSsqB7rM3sKsIqx299tQ==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.6.1","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^24.6.0"},"peerDependencies":{"@remix-run/headers":"^0.16.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.7.0_1762301295151_0.9346043676547282","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"@remix-run/fetch-proxy","version":"0.7.1","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.7.1","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"6c8f932a367e01af3e80b4941feec778460a1022","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.7.1.tgz","fileCount":11,"integrity":"sha512-rPLfOpAaCXtm1dLI45uIPKERNbXbrh0P9AJc1sliz8pWd/McaFYjdr5KzB4QrFSfPvEt/Wmy6F2521qB1kK0ug==","signatures":[{"sig":"MEYCIQDDH1kWfhssp91feqUPvi9I5k/E5woEKp3c6K/hJmlI+wIhAKERspRktwGe9uBkGYflncVBXWi1rRNcD8zRtr90UC2a","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.7.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15172},"type":"module","_from":"file:remix-run-fetch-proxy-0.7.1.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"node --disable-warning=ExperimentalWarning --test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/a88eff5c0bddc926a09e98ee768c14b0/remix-run-fetch-proxy-0.7.1.tgz","_integrity":"sha512-rPLfOpAaCXtm1dLI45uIPKERNbXbrh0P9AJc1sliz8pWd/McaFYjdr5KzB4QrFSfPvEt/Wmy6F2521qB1kK0ug==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.6.2","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@remix-run/headers":"^0.19.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.7.1_1769471882437_0.9167817692128899","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@remix-run/fetch-proxy","version":"0.8.0","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"e16e37304f0b4d083811f6fb20c088c13589ca63","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.0.tgz","fileCount":11,"integrity":"sha512-kUBHz1ykwpS9eiWWeakdsvyIRyNSxKqFJCX2dwceUMOFuGtHkdN96gF1fyv9f6oxhRZCApgm4sjrdL67VpOfhA==","signatures":[{"sig":"MEUCIQCif19b82zuJQqJ6+9Sn6GMMJ7V97VVErKuAiE2obuDmQIgWZdjQIVVSuk80e1mG8TgTDasOKLbrOkn82Rsob44Jxk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15161},"type":"module","_from":"file:remix-run-fetch-proxy-0.8.0.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/68546bba708927c3b70e0166c4aa8f1c/remix-run-fetch-proxy-0.8.0.tgz","_integrity":"sha512-kUBHz1ykwpS9eiWWeakdsvyIRyNSxKqFJCX2dwceUMOFuGtHkdN96gF1fyv9f6oxhRZCApgm4sjrdL67VpOfhA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.11.0","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.14.1","dependencies":{"@remix-run/headers":"^0.19.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.2.0","@remix-run/assert":"0.1.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.0_1777483782166_0.4572651064383113","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@remix-run/fetch-proxy","version":"0.8.1","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.1","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"2d3fdd33b4379309aa8617b5237e01c7a705f152","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.1.tgz","fileCount":11,"integrity":"sha512-CX4FqAnFOwJLqEHMlmHK2gaxdkFKMd9FOqkdwtFLgviJPxDAMGu3ZklfIxsqm5aaZ/Y4BPC5bG3zwjvyU9Is0Q==","signatures":[{"sig":"MEUCIQCLwMntZ6kbZ8Hml5z0W2GHC0PxSn9URImjl/M7JEAStwIgOB/aIFWvjoDvVV1K+V+E+RMdYwQoUUXQEqkustTe0SA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15802},"type":"module","_from":"file:remix-run-fetch-proxy-0.8.1.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/84ddb4ed54505c4f60a4115d7a2bec2b/remix-run-fetch-proxy-0.8.1.tgz","_integrity":"sha512-CX4FqAnFOwJLqEHMlmHK2gaxdkFKMd9FOqkdwtFLgviJPxDAMGu3ZklfIxsqm5aaZ/Y4BPC5bG3zwjvyU9Is0Q==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.12.1","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@remix-run/headers":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.4.0","@remix-run/assert":"0.2.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.1_1779247282181_0.2832288628581483","host":"s3://npm-registry-packages-npm-production"}},"0.8.2":{"name":"@remix-run/fetch-proxy","version":"0.8.2","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.2","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"6f57ae0570cb7bfac2d1e0b148a165ee2b7c955a","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.2.tgz","fileCount":11,"integrity":"sha512-PtwhtKLogCjcF6fokd3BxwPLbZJK1ZgX0dG78Yg+9RzqgCu8UfvOuuNdUadi4eJEhNYr9+KFKyiWYdYxYjLetA==","signatures":[{"sig":"MEUCIHcOjzVKel44oAtVDrGwLtlC9LIkYE0cD0D2ccXYmblBAiEA0szv/G1T5RlavQ7ph95KhtAgqE+St2ovScQ9amr8L/s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15802},"type":"module","_from":"file:remix-run-fetch-proxy-0.8.2.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/e1dbb020f6e85a28db6b65d1244db193/remix-run-fetch-proxy-0.8.2.tgz","_integrity":"sha512-PtwhtKLogCjcF6fokd3BxwPLbZJK1ZgX0dG78Yg+9RzqgCu8UfvOuuNdUadi4eJEhNYr9+KFKyiWYdYxYjLetA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.12.1","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@remix-run/headers":"^0.21.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.4.1","@remix-run/assert":"0.2.1","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.2_1779308234845_0.9916963856299539","host":"s3://npm-registry-packages-npm-production"}},"0.8.3":{"name":"@remix-run/fetch-proxy","version":"0.8.3","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.3","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"a0a7e3641595a2c0cf56414b883d9c5ad72f3178","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.3.tgz","fileCount":11,"integrity":"sha512-FP2/0DIdnPGXMk+UAsRhYmunj3ElH2QNjuvD7VjjyWOAs9vHn7XnvfKk+qs1VDXAO5J9fkzwPQ+Y0n9FJZ8srQ==","signatures":[{"sig":"MEQCIC6XywGfCvFYiFV9tB7rkDsBb6ejlMs6sEjOcHFWA7fkAiAFAr01VnUExzK/HrN9woxYgVIYJh/0La4cCirpNlMIAw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15824},"type":"module","_from":"file:remix-run-fetch-proxy-0.8.3.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/9ebab305131953ab2f8b75c5a5e7ae0d/remix-run-fetch-proxy-0.8.3.tgz","_integrity":"sha512-FP2/0DIdnPGXMk+UAsRhYmunj3ElH2QNjuvD7VjjyWOAs9vHn7XnvfKk+qs1VDXAO5J9fkzwPQ+Y0n9FJZ8srQ==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.13.0","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@remix-run/headers":"^0.21.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.4.2","@remix-run/assert":"0.2.1","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.3_1780078594636_0.4681737260430614","host":"s3://npm-registry-packages-npm-production"}},"0.8.4":{"name":"@remix-run/fetch-proxy","version":"0.8.4","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.4","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"99234b97fa22665ca2a221cc9a1083e959f459cb","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.4.tgz","fileCount":11,"integrity":"sha512-5Vy8EnRgkboQFpGpVL9TNUEFauh94Cq8Vh9pI1g5jQ3C5OnnMuDKtZV0xR0B7plrI3537ZDFbMRaTG8crKAenA==","signatures":[{"sig":"MEYCIQCWVG0fIMndJ2kcR+4Cc2gaMy0PY4+1QG9CquSkhM4SbwIhAPfs7R7BEH4XZzM+IN0/Zh3QZMTPNKcfZ99xNqPTSVmj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15893},"type":"module","_from":"file:remix-run-fetch-proxy-0.8.4.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/52efd2f1daa1ccbd9474314f6dc612c7/remix-run-fetch-proxy-0.8.4.tgz","_integrity":"sha512-5Vy8EnRgkboQFpGpVL9TNUEFauh94Cq8Vh9pI1g5jQ3C5OnnMuDKtZV0xR0B7plrI3537ZDFbMRaTG8crKAenA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.13.0","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.17.0","dependencies":{"@remix-run/headers":"^0.21.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.5.0","@remix-run/assert":"0.3.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.4_1782932517683_0.02469900744996223","host":"s3://npm-registry-packages-npm-production"}},"0.8.5":{"name":"@remix-run/fetch-proxy","version":"0.8.5","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.5","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"a3bf68b8aaada4a5c55e6b271f4f9eca680a7891","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.5.tgz","fileCount":11,"integrity":"sha512-NZmqaa/61xyWYkbERgIth3fPqkqOkmmlMYwmNFL0sG2RE29kH9wG18I6fCg/fu1W3qvSOrMSIS5hMk5ggqZzHg==","signatures":[{"sig":"MEYCIQDLQYHhPdJhlC18oTbSr/mvHaSvJOiHtejHDQIQq24ungIhAO1VaGTEth1EZ9VIUN287K/Arzxwk86UIPdVUWBV/g4/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18450},"type":"module","_from":"file:remix-run-fetch-proxy-0.8.5.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/233acc07d909d42b26555977165bf2b7/remix-run-fetch-proxy-0.8.5.tgz","_integrity":"sha512-NZmqaa/61xyWYkbERgIth3fPqkqOkmmlMYwmNFL0sG2RE29kH9wG18I6fCg/fu1W3qvSOrMSIS5hMk5ggqZzHg==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.16.0","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@remix-run/headers":"^0.21.1"},"_hasShrinkwrap":false,"devDependencies":{"undici":"^7.24.8","typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"0.6.0","@remix-run/assert":"0.3.0","@remix-run/response":"0.3.8"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.5_1786666457996_0.36735372829000346","host":"s3://npm-registry-packages-npm-production"}},"0.8.6":{"name":"@remix-run/fetch-proxy","version":"0.8.6","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.8.6","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"054b239e520592015e95a44963dd47d64fc72a17","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.8.6.tgz","fileCount":11,"integrity":"sha512-PrREYgQwkEDRdoxwt1t9QCvr5f6S/6IMfncHpOAc5fvDEjSMBBTeoiJLxXtdGN+1rSGvcnkYE7+YGlkdSPyXrw==","signatures":[{"sig":"MEQCIG2wNVAjArygO20b7bFLXDvgM84Iem8me7ooqYcsWbZ7AiAkBKGZJ4LRlsbqk1i7zBCCZQBHgNlds7ZYxJ86iBJLsw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFeNTTx/KNfbSDdaHjUxO1hyG9n9zbLPGj4AnDRhqiDmAiEAsmnAlUvMGJVTbTvQbs0987/uGivunzGxwHcS5R0btNc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.8.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20062},"type":"module","_from":"file:/tmp/remix-publish-fetch-proxy-OAiOXy/remix-run-fetch-proxy-0.8.6.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/remix-publish-fetch-proxy-OAiOXy/remix-run-fetch-proxy-0.8.6.tgz","_integrity":"sha512-PrREYgQwkEDRdoxwt1t9QCvr5f6S/6IMfncHpOAc5fvDEjSMBBTeoiJLxXtdGN+1rSGvcnkYE7+YGlkdSPyXrw==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.19.0","description":"An HTTP proxy for the web Fetch API","directories":{},"_nodeVersion":"24.20.0","dependencies":{"@remix-run/headers":"^0.21.2"},"_hasShrinkwrap":false,"devDependencies":{"undici":"^7.24.8","typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"0.6.1","@remix-run/assert":"0.3.0","@remix-run/response":"0.3.9"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.8.6_1789770997291_0.5827241662181823","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@remix-run/fetch-proxy","version":"0.9.0","keywords":["fetch","http","proxy"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/fetch-proxy@0.9.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"d3c8d83649342193134397096fe151d97b578916","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-0.9.0.tgz","fileCount":11,"integrity":"sha512-9Cjlr+vekb14fUJdTBCusQfsXXdV/rU7IedQo8ANorhq1x3GjlqUNNUhqMkNnmTl5oxhXgXtP0V1t/GafwyXHQ==","signatures":[{"sig":"MEUCIDOdvUe9xqKk1cUW/EXJAX8rWdTmWd01pxTkD5YeIxToAiEAzYnWP6SXX0CTEqDMoTsOMUx/+9Ad239v2tnnAMlzoSE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCdjbOyCNNt7r2ahOV58vj2Pftxb5Hgvmk0tmVDaCVKlQIgHT+Y65UJwncanvK1bP5XycfcsiT3I1zPJpIZYGFe28M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@0.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24135},"type":"module","_from":"file:/tmp/remix-publish-fetch-proxy-rRgGRM/remix-run-fetch-proxy-0.9.0.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"_resolved":"/tmp/remix-publish-fetch-proxy-rRgGRM/remix-run-fetch-proxy-0.9.0.tgz","_integrity":"sha512-9Cjlr+vekb14fUJdTBCusQfsXXdV/rU7IedQo8ANorhq1x3GjlqUNNUhqMkNnmTl5oxhXgXtP0V1t/GafwyXHQ==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.19.0","description":"An HTTP proxy for the web Fetch API","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"@remix-run/headers":"^0.21.3"},"_hasShrinkwrap":false,"devDependencies":{"undici":"^7.24.8","typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"0.6.2","@remix-run/assert":"0.3.1","@remix-run/response":"0.3.10","@remix-run/node-fetch-server":"^0.14.2"},"_npmOperationalInternal":{"tmp":"tmp/fetch-proxy_0.9.0_1790631666082_0.9583724111756524","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"_id":"@remix-run/fetch-proxy@1.0.0","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"52d97dddc48e2edc0e7833333b510f3a14117de8","tarball":"https://registry.npmjs.org/@remix-run/fetch-proxy/-/fetch-proxy-1.0.0.tgz","fileCount":11,"integrity":"sha512-YwVuaGTeYcKN+MwZn6ADHAcstAX+R9x5HfueiFGUhgOlBU6xTSl24VKcAYisSUFJ9srGDbKq79Q+Yg7sKN9+ag==","signatures":[{"sig":"MEQCIGHptounX577P+WNu5Nft+o6MhCQHuG59QgPU6D3toK2AiA4gCaWGMV5tX3MZLSzV8n2zL2NMEK8W7O3Olql2hnCRg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEUifr1EXk2+g6mHRJlY2vEE4dch2U0xIlAUs2Bfs+CfAiBlOwOf1VgQFVe/rY9IZgo6Spt/+j9JiPZp2gOwBLe6MA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2ffetch-proxy@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24132},"name":"@remix-run/fetch-proxy","type":"module","_from":"file:/tmp/remix-publish-fetch-proxy-xIxG79/remix-run-fetch-proxy-1.0.0.tgz","author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"license":"MIT","scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"version":"1.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"8d18be19-1636-4788-8fd8-047a02f6f5c3"}},"homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","keywords":["fetch","http","proxy"],"_resolved":"/tmp/remix-publish-fetch-proxy-xIxG79/remix-run-fetch-proxy-1.0.0.tgz","_integrity":"sha512-YwVuaGTeYcKN+MwZn6ADHAcstAX+R9x5HfueiFGUhgOlBU6xTSl24VKcAYisSUFJ9srGDbKq79Q+Yg7sKN9+ag==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"_npmVersion":"11.19.0","description":"An HTTP proxy for the web Fetch API","directories":{},"maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"@remix-run/headers":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"undici":"^7.24.8","typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"1.0.0","@remix-run/assert":"1.0.0","@remix-run/response":"1.0.0","@remix-run/node-fetch-server":"^1.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch-proxy_1.0.0_1790895360547_0.11145629271479196"}}},"time":{"created":"2025-07-24T19:27:57.906Z","modified":"2026-10-01T22:56:01.123Z","0.5.0":"2025-07-24T19:27:58.231Z","0.6.0":"2025-10-22T17:03:17.501Z","0.7.0":"2025-11-05T00:08:15.329Z","0.7.1":"2026-01-26T23:58:02.591Z","0.8.0":"2026-04-29T17:29:42.316Z","0.8.1":"2026-05-20T03:21:22.330Z","0.8.2":"2026-05-20T20:17:15.004Z","0.8.3":"2026-05-29T18:16:34.768Z","0.8.4":"2026-07-01T19:01:57.867Z","0.8.5":"2026-08-14T00:14:18.144Z","0.8.6":"2026-09-18T22:36:37.388Z","0.9.0":"2026-09-28T21:41:06.163Z","1.0.0":"2026-10-01T22:56:00.630Z"},"bugs":{"url":"https://github.com/remix-run/remix/issues"},"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","homepage":"https://github.com/remix-run/remix/tree/main/packages/fetch-proxy#readme","keywords":["fetch","http","proxy"],"repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/fetch-proxy"},"description":"An HTTP proxy for the web Fetch API","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"readme":"# fetch-proxy\n\nHTTP proxy utilities built on the web [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). Use `fetch-proxy` to create `fetch` handlers that forward requests to target servers while optionally rewriting headers and cookies.\n\n## Features\n\n- **Web Standards** - Built on the standard [JavaScript Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)\n- **Cookie Rewriting** - Supports rewriting `Set-Cookie` headers received from target server\n- **Forwarding Headers** - Supports `X-Forwarded-Proto`, `X-Forwarded-Host`, and `X-Forwarded-Port` headers\n- **Encoding Headers** - Strips stale encoding and framing headers from proxied responses\n- **Custom Fetch** - Supports custom `fetch` implementations\n\n## Installation\n\n```sh\nnpm i remix\n```\n\n## Usage\n\n```ts\nimport { createFetchProxy } from 'remix/fetch-proxy'\n\n// Create a proxy that sends all requests through to remix.run\nlet proxy = createFetchProxy('https://remix.run')\n\n// This fetch handler is probably running as part of your server somewhere...\nfunction handleFetch(request: Request): Promise<Response> {\n  return proxy(request)\n}\n\n// Test it out by manually throwing a Request at it\nlet response = await handleFetch(new Request('https://shopify.com'))\n\nlet text = await response.text()\nlet title = text.match(/<title>([^<]+)<\\/title>/)[1]\nassert(title.includes('Remix'))\n```\n\n## Forwarding Headers\n\nSet `xForwardedHeaders: true` to set `X-Forwarded-Proto`, `X-Forwarded-Host`, and\n`X-Forwarded-Port` from the incoming request URL. When enabled, the proxy removes the `Forwarded`\nheader and replaces any existing values for these three headers so the target receives a single set\nof URL metadata from the current proxy request.\n\n```ts\nlet proxy = createFetchProxy('https://remix.run', {\n  xForwardedHeaders: true,\n})\n```\n\nThe proxy also removes `X-Forwarded-For` when this option is enabled. Fetch requests do not expose the client's connection address, so the proxy cannot generate a replacement value. An upstream using `node-fetch-server` with `trustProxy: true` will fall back to the proxy's connection address.\n\nWhen `xForwardedHeaders` is disabled (the default), existing forwarding headers are passed through unless listed in `Connection`. If the target trusts these headers, the caller must supply them from a trusted source.\n\n## Redirects\n\nUnlike a client-side `fetch`, the proxy returns upstream redirects instead of following them by default. This lets the client receive the redirect status, `Location`, and headers such as `Set-Cookie`.\n\nEvery `Request` uses `'follow'` by default, even when the caller did not choose a redirect mode. The proxy treats that implicit default as `'manual'`, meaning it returns the redirect to the client. Input requests using `'manual'` or `'error'` retain those modes.\n\nTo follow redirects inside the proxy:\n\n```ts\nlet proxy = createFetchProxy('https://remix.run', {\n  redirect: 'follow',\n})\n```\n\nA defined per-call `init.redirect` overrides the proxy option.\n\n## Encoding and Framing Headers\n\nSince proxying is done via `fetch` rather than raw HTTP messages, some encoding and framing headers need to be removed.\n\nThe incoming `Accept-Encoding` request header describes the final client, so it is not forwarded to the target server.\n\nConnection-specific request headers, including any fields named by `Connection`, are removed before forwarding. Incoming `Content-Length` and `Transfer-Encoding` are also removed so the outgoing `fetch` determines framing for the streamed body. This applies to custom `fetch` functions as well.\n\nSince `fetch` can decompress upstream responses and does not expose raw HTTP transfer framing, `fetch-proxy` strips response headers that may no longer describe the returned body: `Content-Encoding`, related `Content-Length`, and `Transfer-Encoding`.\n\nTo support serving compressed responses to the final client, you'll need to compress the response after the proxy returns it, e.g. with the [`compressResponse` helper from `remix/response`](https://github.com/remix-run/remix/tree/main/packages/response#compress-responses):\n\n```ts\nimport { createFetchProxy } from 'remix/fetch-proxy'\nimport { compressResponse } from 'remix/response/compress'\n\nlet proxy = createFetchProxy('https://remix.run')\n\nasync function handleFetch(request: Request): Promise<Response> {\n  let response = await proxy(request)\n\n  return compressResponse(response, request)\n}\n```\n\n## Related Packages\n\n- [`node-fetch-server`](https://github.com/remix-run/remix/tree/main/packages/node-fetch-server) - Build HTTP servers for Node.js using the web fetch API\n- [`response`](https://github.com/remix-run/remix/tree/main/packages/response) - Create, transform, and compress Fetch API responses\n\n## License\n\nSee [LICENSE](https://github.com/remix-run/remix/blob/main/LICENSE)\n","readmeFilename":"README.md"}