Class: Mongrel::HttpResponse

Constants

NameValue
NO_CLOSE_STATUS_FORMAT "HTTP/1.1 %d %s\r\n".freeze

Public Instance Methods


send_status_no_connection_close (content_length=@body.length)

   # File lib/merb/mongrel_handler.rb, line 3
3:   def send_status_no_connection_close(content_length=@body.length)
4:     unless @status_sent
5:       @header['Content-Length'] = content_length unless @status == 304
6:       write(NO_CLOSE_STATUS_FORMAT % [@status, Mongrel::HTTP_STATUS_CODES[@status]])
7:       @status_sent = true
8:     end
9:   end