lib/reel/response.rb
# Convert headers into a string
# FIXME: this should probably be factored elsewhere, SRP and all
Convert headers into a string
FIXME: this should probably be factored elsewhere, SRP and all
Convert headers into a string FIXME : this should probably be factored elsewhere SRP and all
def render_header
      response_header = "#{@version} #{@status} #{@reason}#{CRLF}"
      unless @headers.empty?
        response_header << @headers.map do |header, value|
          "#{header}: #{value}"
        end.join(CRLF) << CRLF
      end
      response_header << CRLF
    end
def render_header response_header = "#{@version} #{@status} #{@reason}#{CRLF}" unless @headers . empty? response_header << @headers . map do | header , value | "#{header}: #{value}" end . join ( CRLF ) << CRLF end response_header << CRLF end
Convert headers into a string
FIXME: this should probably be factored elsewhere, SRP and all
Convert headers into a string FIXME : this should probably be factored elsewhere SRP and all