Class: HTTPalooza::Players::HTTPClientPlayer
- Defined in:
- lib/httpalooza/players/http_client.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
execute!, #initialize, introducing!, #name
Constructor Details
This class inherits a constructor from HTTPalooza::Players::Base
Instance Method Details
#response ⇒ Object
6 7 8 9 10 |
# File 'lib/httpalooza/players/http_client.rb', line 6 def response client = HTTPClient.new response = client.request(request.method, request.url, nil, request.payload, request.headers) Response.new(response.code, response.body) end |