Method: FTW::HTTP::Message#to_s
- Defined in:
- lib/ftw/http/message.rb
#to_s ⇒ Object
Serialize this Request according to RFC2616 Note: There is NO trailing CRLF. This is intentional. The RFC defines:
generic- = start-line
*(-header CRLF)
CRLF
[ -body ]
Thus, the CRLF between header and body is not part of the header.
121 122 123 |
# File 'lib/ftw/http/message.rb', line 121 def to_s return [start_line, @headers].join(CRLF) end |