Class: Slimmer::HTTPClient
- Inherits:
-
Object
- Object
- Slimmer::HTTPClient
- Defined in:
- lib/slimmer/http_client.rb
Class Method Summary collapse
Class Method Details
.get(url) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/slimmer/http_client.rb', line 6 def self.get(url) headers = { user_agent: "slimmer/#{Slimmer::VERSION} (#{ENV['GOVUK_APP_NAME']})", govuk_request_id: GovukRequestId.value, } response = RestClient.get(url, headers) response.body end |