Class: HTTP::Put
- Defined in:
- lib/http_client/mri/methods.rb,
lib/http_client/jruby/methods.rb
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
Methods inherited from Request
#add_headers, #basic_auth, #content_type=, #execute_native_request, #initialize, #make_native_request
Constructor Details
This class inherits a constructor from HTTP::Request
Instance Method Details
#create_native_request ⇒ Object
96 97 98 |
# File 'lib/http_client/jruby/methods.rb', line 96 def create_native_request HttpPut.new(create_uri) end |
#create_request ⇒ Object
109 110 111 112 113 |
# File 'lib/http_client/mri/methods.rb', line 109 def create_request host, port, path, query = parse_uri put = Net::HTTP::Put.new(path) [host, port, put] end |