Class: HTTP::Delete

Inherits:
Request show all
Defined in:
lib/http_client/mri/methods.rb,
lib/http_client/jruby/methods.rb

Instance Attribute Summary

Attributes inherited from Request

#body, #encoding

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_requestObject



90
91
92
# File 'lib/http_client/jruby/methods.rb', line 90

def create_native_request
  HttpDelete.new(create_uri)
end

#create_requestObject



117
118
119
120
121
# File 'lib/http_client/mri/methods.rb', line 117

def create_request
  host, port, path, query = parse_uri
  delete = Net::HTTP::Delete.new(path)
  [host, port, delete]
end