Module: ProxyFetcher::Client
- Defined in:
- lib/proxy_fetcher/client/client.rb,
lib/proxy_fetcher/client/request.rb,
lib/proxy_fetcher/client/proxies_registry.rb
Defined Under Namespace
Classes: ProxiesRegistry, Request
Class Method Summary
collapse
-
.delete(url, headers: {}, options: {}) ⇒ Object
-
.get(url, headers: {}, options: {}) ⇒ Object
-
.head(url, headers: {}, options: {}) ⇒ Object
-
.patch(url, payload, headers: {}, options: {}) ⇒ Object
-
.post(url, payload, headers: {}, options: {}) ⇒ Object
-
.put(url, payload, headers: {}, options: {}) ⇒ Object
Class Method Details
.delete(url, headers: {}, options: {}) ⇒ Object
16
17
18
|
# File 'lib/proxy_fetcher/client/client.rb', line 16
def delete(url, headers: {}, options: {})
request_without_payload(:delete, url, , options)
end
|
.get(url, headers: {}, options: {}) ⇒ Object
4
5
6
|
# File 'lib/proxy_fetcher/client/client.rb', line 4
def get(url, headers: {}, options: {})
request_without_payload(:get, url, , options)
end
|
.head(url, headers: {}, options: {}) ⇒ Object
8
9
10
|
# File 'lib/proxy_fetcher/client/client.rb', line 8
def head(url, headers: {}, options: {})
request_without_payload(:head, url, , options)
end
|
.patch(url, payload, headers: {}, options: {}) ⇒ Object
24
25
26
|
# File 'lib/proxy_fetcher/client/client.rb', line 24
def patch(url, payload, headers: {}, options: {})
request_with_payload(:patch, url, payload, , options)
end
|
.post(url, payload, headers: {}, options: {}) ⇒ Object
12
13
14
|
# File 'lib/proxy_fetcher/client/client.rb', line 12
def post(url, payload, headers: {}, options: {})
request_with_payload(:post, url, payload, , options)
end
|
.put(url, payload, headers: {}, options: {}) ⇒ Object
20
21
22
|
# File 'lib/proxy_fetcher/client/client.rb', line 20
def put(url, payload, headers: {}, options: {})
request_with_payload(:put, url, payload, , options)
end
|