Module: HTTMultiParty::ClassMethods
- Defined in:
- lib/httmultiparty.rb
Instance Method Summary collapse
- #patch(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
Instance Method Details
#patch(path, options = {}) ⇒ Object
151 152 153 154 155 156 157 158 159 |
# File 'lib/httmultiparty.rb', line 151 def patch(path, ={}) method = Net::HTTP::Patch [:body] ||= .delete(:query) if hash_contains_files?([:body]) method = MultipartPatch [:query_string_normalizer] = HTTMultiParty.query_string_normalizer() end perform_request method, path, end |
#post(path, options = {}) ⇒ Object
131 132 133 134 135 136 137 138 139 |
# File 'lib/httmultiparty.rb', line 131 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
141 142 143 144 145 146 147 148 149 |
# File 'lib/httmultiparty.rb', line 141 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 |