Method: Seahorse::Client::Http::Request#initialize
- Defined in:
- lib/seahorse/client/http/request.rb
#initialize(options = {}) ⇒ Request
Returns a new instance of Request.
15 16 17 18 19 20 |
# File 'lib/seahorse/client/http/request.rb', line 15 def initialize( = {}) self.endpoint = [:endpoint] self.http_method = [:http_method] || 'GET' self.headers = Headers.new([:headers] || {}) self.body = [:body] end |