net-http has several convenience functions that provide for terse invocations, but eg. Net::HTTP.post does not implicitly do:
headers['Content-Type'] ||= 'application/json' → Caller must add though it seems ubiquitously consequential.
http.response_body_encoding = true → Caller must revert to a verbose Net::HTTP.new and explicit data.to_json.
Would like to hear any possible issues with having these benefits provided implicitly through net-http conveniences.
net-http has several convenience functions that provide for terse invocations, but eg. Net::HTTP.post does not implicitly do:
headers['Content-Type'] ||= 'application/json'→ Caller must add though it seems ubiquitously consequential.http.response_body_encoding = true→ Caller must revert to a verboseNet::HTTP.newand explicitdata.to_json.Would like to hear any possible issues with having these benefits provided implicitly through net-http conveniences.