Sha256: f42a36c18ae1a8f297706065be7fef94ed199246557563f69667bef6e4fc671d

Contents?: true

Size: 331 Bytes

Versions: 70

Compression:

Stored size: 331 Bytes

Contents

# 示例:测试API


### 通过对象调用

```ruby
client = HttpCrawler::Proxy::TestProxyApi::Client.new
client.get_proxy  # 获取代理
```

### 通过别名调用
```ruby
client = HttpCrawler::Proxy.for("test_proxy_api") # 
client.get_proxy   # 获取代理
```

### response.rb
用于维护不同响应结果的处理方法

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
http_crawler-0.3.2.12 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.11 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.10 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.9 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.8 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.7 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.6 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.5 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.4 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.3 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.2 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.1 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.2.0 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.31 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.30 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.29 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.28 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.27 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.26 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.3.1.25 lib/http_crawler/proxy/test_proxy_api/README.md