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.2.2.8 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2.7 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2.6 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2.5 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2.4 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2.3 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2.1 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.2 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.1 lib/http_crawler/proxy/test_proxy_api/README.md
http_crawler-0.2.0 lib/http_crawler/proxy/test_proxy_api/README.md