Skip to content

Commit 3c4a6e5

Browse files
authored
Merge pull request #2 from proxymesh/chore/remove-proxymesh-host-examples
Docs: use neutral proxyhost:port examples
2 parents 72ab948 + 971f416 commit 3c4a6e5

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ Same environment variables as [python-proxy-headers](https://github.com/proxymes
122122
```bash
123123
cd ruby-proxy-headers
124124
bundle install
125-
export PROXY_URL=http://us-ca.proxymesh.com:31280
125+
export PROXY_URL=http://user:pass@proxyhost:port
126126
bundle exec ruby test/test_proxy_headers.rb -v
127127
```
128128

129+
Use a placeholder proxy host in examples, e.g. `http://user:pass@proxyhost:port`.
130+
129131
## Documentation
130132

131133
- [Library research](LIBRARY_RESEARCH.md) — proxy header support by client

docs/faraday.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ session_id = "session-#{SecureRandom.hex(8)}"
110110

111111
conn = Faraday.new do |f|
112112
f.use RubyProxyHeaders::Faraday::Middleware,
113-
proxy: 'http://user:pass@us.proxymesh.com:31280',
113+
proxy: 'http://user:pass@proxyhost:port',
114114
proxy_headers: { 'X-ProxyMesh-Session' => session_id }
115115
f.adapter Faraday.default_adapter
116116
end

docs/httparty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class IPChecker
120120
base_uri 'https://api.ipify.org'
121121
format :json
122122

123-
http_proxy 'us.proxymesh.com', 31280, ENV['PROXY_USER'], ENV['PROXY_PASS']
123+
http_proxy 'proxyhost', 1234, ENV['PROXY_USER'], ENV['PROXY_PASS']
124124
proxy_headers 'X-ProxyMesh-Session' => 'persistent'
125125

126126
def self.check_ip

docs/net-http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ response.proxy_response_headers # Headers from proxy CONNECT response
114114
require 'ruby_proxy_headers'
115115
require 'json'
116116

117-
proxy_url = 'http://user:pass@us.proxymesh.com:31280'
117+
proxy_url = 'http://user:pass@proxyhost:port'
118118

119119
response = RubyProxyHeaders::NetHTTP.get(
120120
'https://api.ipify.org?format=json',

0 commit comments

Comments
 (0)