Module: HTTMultiParty::ClassMethods
- Defined in:
- lib/httmultiparty.rb
Instance Method Summary collapse
Instance Method Details
#post(path, options = {}) ⇒ Object
82 83 84 85 86 87 88 89 90 |
# File 'lib/httmultiparty.rb', line 82 def post(path, ={}) method = Net::HTTP::Post [:body] ||= .delete(:query) if hash_contains_files?([:body]) method = MultipartPost [:query_string_normalizer] = HTTMultiParty.query_string_normalizer() end perform_request method, path, end |
#put(path, options = {}) ⇒ Object
92 93 94 95 96 97 98 99 100 |
# File 'lib/httmultiparty.rb', line 92 def put(path, ={}) method = Net::HTTP::Put [:body] ||= .delete(:query) if hash_contains_files?([:body]) method = MultipartPut [:query_string_normalizer] = HTTMultiParty.query_string_normalizer() end perform_request method, path, end |