Feature #9987

method Net::HTTP methods private

Added by Douglas Feitosa 10 months ago. Updated 10 months ago.

[ruby-core:63374]
Status:Third Party's Issue
Priority:Normal
Assignee:-

Description

    def HTTP.start(address, *arg, &block) # :yield: +http+
      arg.pop if opt = Hash.try_convert(arg[-1])
      port, p_addr, p_port, p_user, p_pass = *arg
      port = https_default_port if !port && opt && opt[:use_ssl]
      http = new(address, port, p_addr, p_port, p_user, p_pass)

      if opt
        if opt[:use_ssl]
          opt = {verify_mode: OpenSSL::SSL::VERIFY_PEER}.update(opt)
        end
        http.methods.grep(/\A(\w+)=\z/) do |meth|
          key = $1.to_sym
          opt.key?(key) or next
          http.__send__(meth, opt[key])
        end
      end

      http.start(&block)
    end

method 'methods' in http(Net::HTTP) private when running in rake task.

History

#1 Updated by Nobuyoshi Nakada 10 months ago

  • Description updated (diff)
  • Status changed from Open to Third Party's Issue

Why is it private?
Who does it?

#2 Updated by Zachary Scott 10 months ago

  • Tracker changed from Bug to Feature

I also think this may be a feature

Also available in: Atom PDF