Sha256: 2fcccd3a1b78096a7aae9cfde4a586a1b4550dc50db1137c9df4090de2dcf964
Contents?: true
Size: 613 Bytes
Versions: 18
Compression:
Stored size: 613 Bytes
Contents
require 'net/http' module Resourceful class Resource def options(header = {}) request(:options, nil, header) end def host_with_port add = Addressable::URI.parse(uri) !add.port.blank? && add.port != 80 ? [add.host, add.port].join(':') : add.host end alias_method_chain :host, :port end class NetHttpAdapter def net_http_request_class_with_options(method) if method == :options Net::HTTP::Options else net_http_request_class_without_options(method) end end alias_method_chain :net_http_request_class, :options end end
Version data entries
18 entries across 18 versions & 1 rubygems