Class Mongrel::HttpResponse
In: merb-core/lib/merb-core/rack/handler/mongrel.rb
Parent: Object

Methods

Constants

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

Public Instance methods

Sends the status to the client without closing the connection.

Parameters

content_length<Fixnum>:The length of the content. Defaults to body length.

[Source]

    # File merb-core/lib/merb-core/rack/handler/mongrel.rb, line 9
 9:   def send_status_no_connection_close(content_length=@body.length)
10:     unless @status_sent
11:       write(NO_CLOSE_STATUS_FORMAT % [@status, Mongrel::HTTP_STATUS_CODES[@status]])
12:       @status_sent = true
13:     end
14:   end

[Validate]