Class: Cucumber::Formatter::HTTPIO

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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



12
13
14
15
16
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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