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) ⇒ Object

Returns an IO that will write to a HTTP request’s body



9
10
11
12
13
# File 'lib/cucumber/formatter/http_io.rb', line 9

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