lib/bio/command.rb in bio-1.5.1 vs lib/bio/command.rb in bio-1.5.2
- old
+ new
@@ -790,9 +790,19 @@
Net::HTTP.new(address, port)
end
end
# Same as:
+ # h = Bio::Command.new_http(address, port)
+ # h.use_ssl = true
+ # h
+ def new_https(address, port = 443)
+ connection = new_http(address, port)
+ connection.use_ssl = true
+ connection
+ end
+
+ # Same as:
# http = Net::HTTP.new(...); http.post_form(path, params)
# and
# it uses proxy if an environment variable (same as OpenURI.open_uri)
# is set.
# In addition, +header+ can be set.