Class: Cucumber::Formatter::HTTPIO

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/formatter/http_io.rb

Class Method Summary collapse

Class Method Details

.open(url, https_verify_mode = nil, reporter = nil) ⇒ Object

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



14
15
16
17
# File 'lib/cucumber/formatter/http_io.rb', line 14

def self.open(url, https_verify_mode = nil, reporter = nil)
  uri, method, headers = CurlOptionParser.parse(url)
  IOHTTPBuffer.new(uri, method, headers, https_verify_mode, reporter)
end