Module: RFlow::Components::HTTP::Extensions::HTTPResponseExtension
- 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
40 41 42 |
# File 'lib/rflow/components/http/extensions.rb', line 40 def self.extended(base_data) base_data.data_object ||= {'protocol' => 'HTTP/1.0', 'status_code' => 200, 'status_reason_phrase' => 'OK', 'headers' => {}, 'content' => ''} end |