Method: FTW::HTTP::Message#to_s

Defined in:
lib/ftw/http/message.rb

#to_sObject

Serialize this Request according to RFC2616 Note: There is NO trailing CRLF. This is intentional. The RFC defines:

generic-message = start-line
                  *(message-header CRLF)
                  CRLF
                  [ message-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