Class: Mongrel::HttpRequest
- Inherits:
-
Object
- Object
- Mongrel::HttpRequest
- Defined in:
- lib/stomp_server_ng/protocols/http.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params, initial_body) ⇒ HttpRequest
constructor
A new instance of HttpRequest.
Constructor Details
#initialize(params, initial_body) ⇒ HttpRequest
Returns a new instance of HttpRequest.
5 6 7 8 9 |
# File 'lib/stomp_server_ng/protocols/http.rb', line 5 def initialize(params, initial_body) @params = params @body = StringIO.new @body.write params.http_body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/stomp_server_ng/protocols/http.rb', line 3 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/stomp_server_ng/protocols/http.rb', line 3 def params @params end |