Module: RFlow::Components::HTTP::Extensions::HTTPRequestExtension

Defined in:
lib/rflow/components/http/extensions.rb

Overview

Need to be careful when extending to not clobber data already in data_object

Class Method Summary collapse

Class Method Details

.extended(base_data) ⇒ Object



20
21
22
# File 'lib/rflow/components/http/extensions.rb', line 20

def self.extended(base_data)
  base_data.data_object ||= {'uri' => '/', 'method' => 'GET', 'protocol' => 'HTTP/1.0', 'headers' => {}, 'content' => ''}
end