From 25d51f731fbfc8f27081b2f6f995f7197ae17a0f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 20 Nov 2026 21:11:53 +0000 Subject: [PATCH 1/2] Fix README await examples and add docs links Co-authored-by: ProxyMesh AI --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5889e6d..4fef4cf 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ response.proxyHeaders.get('x-proxymesh-ip') ```javascript import { createProxyAxios } from 'javascript-proxy-headers/axios'; -const client = createProxyAxios({ +const client = await createProxyAxios({ proxy: 'http://user:pass@proxy.example.com:8080', proxyHeaders: { 'X-ProxyMesh-Country': 'US' } }); @@ -96,7 +96,7 @@ console.log(response.proxyHeaders.get('x-proxymesh-ip')); ```javascript import { createProxyGot } from 'javascript-proxy-headers/got'; -const client = createProxyGot({ +const client = await createProxyGot({ proxy: 'http://user:pass@proxy.example.com:8080', proxyHeaders: { 'X-ProxyMesh-Country': 'US' } }); @@ -246,7 +246,9 @@ Verbose (`-v`) prints captured header values. See `test/test_proxy_headers.js -- ## Documentation -- [javascript-proxy-headers on Read the Docs](https://javascript-proxy-headers.readthedocs.io/) +- [JavaScript proxy configuration examples](https://docs.proxymesh.com/article/41-javascript-proxy-configuration-examples) +- [ProxyMesh request and response headers](https://docs.proxymesh.com/article/7-request-response-headers) +- [Proxy headers over HTTPS](https://docs.proxymesh.com/article/145-proxy-server-requests-over-https) - **[proxy-examples](https://github.com/proxymesh/proxy-examples)** - Example code for using proxies ## Other languages From 51e939178780169a1aa707d91da832bb6fe48095 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 20 Nov 2026 21:22:16 +0000 Subject: [PATCH 2/2] Use Content Writer docs wording for proxy headers link Co-authored-by: ProxyMesh AI --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 4fef4cf..cd47756 100644 --- a/README.md +++ b/README.md @@ -247,8 +247,7 @@ Verbose (`-v`) prints captured header values. See `test/test_proxy_headers.js -- ## Documentation - [JavaScript proxy configuration examples](https://docs.proxymesh.com/article/41-javascript-proxy-configuration-examples) -- [ProxyMesh request and response headers](https://docs.proxymesh.com/article/7-request-response-headers) -- [Proxy headers over HTTPS](https://docs.proxymesh.com/article/145-proxy-server-requests-over-https) +- [ProxyMesh proxy request and response headers](https://docs.proxymesh.com/article/7-request-response-headers), including the custom headers you can send on CONNECT - **[proxy-examples](https://github.com/proxymesh/proxy-examples)** - Example code for using proxies ## Other languages