class Cucumber::Formatter::HTTPIO
Public Class Methods
open(url, https_verify_mode = nil, reporter = nil)
click to toggle source
Returns an IO that will write to a HTTP request's body https_verify_mode can be set to OpenSSL::SSL::VERIFY_NONE to ignore unsigned certificate - setting to nil will verify the certificate
# File lib/cucumber/formatter/http_io.rb, line 12 def open(url, https_verify_mode = nil, reporter = nil) @https_verify_mode = https_verify_mode uri, method, headers = CurlOptionParser.parse(url) IOHTTPBuffer.new(uri, method, headers, https_verify_mode, reporter) end