Class: Browsermob::Rest::Services::WhitelistService
- Inherits:
-
BaseService
- Object
- BaseService
- Browsermob::Rest::Services::WhitelistService
- Defined in:
- lib/browsermob/rest/services/whitelist_service.rb
Class Method Summary collapse
- .get_proxy_whitelist(port) ⇒ Object
- .remove_proxy_whitelist(port) ⇒ Object
- .update_proxy_whitelist(port, data) ⇒ Object
Class Method Details
.get_proxy_whitelist(port) ⇒ Object
10 11 12 13 |
# File 'lib/browsermob/rest/services/whitelist_service.rb', line 10 def get_proxy_whitelist(port) url = base_url + sprintf(Util::Endpoints::PROXY_PORT_WHITELIST, port) get_request(url) end |
.remove_proxy_whitelist(port) ⇒ Object
20 21 22 23 |
# File 'lib/browsermob/rest/services/whitelist_service.rb', line 20 def remove_proxy_whitelist(port) url = base_url + sprintf(Util::Endpoints::PROXY_PORT_WHITELIST, port) remove_request(url) end |
.update_proxy_whitelist(port, data) ⇒ Object
15 16 17 18 |
# File 'lib/browsermob/rest/services/whitelist_service.rb', line 15 def update_proxy_whitelist(port, data) url = base_url + sprintf(Util::Endpoints::PROXY_PORT_WHITELIST, port) update_request(url, data) end |