Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
});
Expand Down Expand Up @@ -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' }
});
Expand Down Expand Up @@ -246,7 +246,8 @@ 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 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
Expand Down