Sha256: de1bee0bee9343d6f6bc24d92e8c4558ee832b6a6f6793ae974fefee9215f70c
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
module Net # Add ::post for version less than 2.4 and change ::post for version 2.4 class HTTP if RUBY_VERSION < "2.5" def self.post(url, data, header = nil) start(url.hostname, url.port, use_ssl: url.scheme == "https") do |http| http.post(url, data, header) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_notifier-0.4.2 | lib/active_notifier/core_ext/net/http/post.rb |
active_notifier-0.4.1 | lib/active_notifier/core_ext/net/http/post.rb |