Class: Mongrel::HttpRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/stomp_server/protocols/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params, initial_body) ⇒ HttpRequest

Returns a new instance of HttpRequest.



5
6
7
8
9
# File 'lib/stomp_server/protocols/http.rb', line 5

def initialize(params, initial_body)
  @params = params
  @body = StringIO.new
  @body.write params.http_body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/stomp_server/protocols/http.rb', line 3

def body
  @body
end

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/stomp_server/protocols/http.rb', line 3

def params
  @params
end