Class: Opensaz::HTTPRequest
- Inherits:
-
Object
- Object
- Opensaz::HTTPRequest
- Defined in:
- lib/opensaz/http_request.rb
Direct Known Subclasses
Constant Summary collapse
- CRLF =
"\r\n"
- SEPERATOR =
": "
Instance Method Summary collapse
- #body ⇒ Object
- #headers ⇒ Object
-
#initialize(content) ⇒ HTTPRequest
constructor
A new instance of HTTPRequest.
Constructor Details
#initialize(content) ⇒ HTTPRequest
Returns a new instance of HTTPRequest.
7 8 9 10 |
# File 'lib/opensaz/http_request.rb', line 7 def initialize(content) raise "request_str couldn't be nil" if content == nil @content = content end |