Class: Mongrel::HttpResponse
- Inherits:
-
Object
- Object
- Mongrel::HttpResponse
- Defined in:
- lib/rack/handler/mongrel.rb
Constant Summary collapse
- NO_CLOSE_STATUS_FORMAT =
"HTTP/1.1 %d %s\r\n".freeze
Instance Method Summary collapse
-
#send_status_no_connection_close(content_length = @body.length) ⇒ Object
Sends the status to the client without closing the connection.
Instance Method Details
#send_status_no_connection_close(content_length = @body.length) ⇒ Object
Sends the status to the client without closing the connection.
Parameters
- content_length<Fixnum>
-
The length of the content. Defaults to body length.
11 12 13 14 15 16 |
# File 'lib/rack/handler/mongrel.rb', line 11 def send_status_no_connection_close(content_length=@body.length) unless @status_sent write(NO_CLOSE_STATUS_FORMAT % [@status, Mongrel::HTTP_STATUS_CODES[@status]]) @status_sent = true end end |