Class: Opi::Response

Inherits:
Rack::Response
  • Object
show all
Defined in:
lib/opi/response.rb

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



4
5
6
7
8
9
10
# File 'lib/opi/response.rb', line 4

def initialize
  @status, @body = 200, ["{}","\n"]
  @header = Rack::Utils::HeaderHash.new({
    'Content-Type' => 'application/json; charset=utf-8'
    # 'Server' => 'TBD/1.0'
  })
end