Last Modified
Wed Apr 06 21:47:28 +0000 2011
Requires
Trac URL
http://bogomips.org/unicorn.git/tree/lib/unicorn/http_response.rb

Description

Writes a Rack response to your client using the HTTP/1.1 specification. You use it by simply doing:

status, headers, body = rack_app.call(env)
http_response_write(socket, status, headers, body)

Most header correctness (including Content-Length and Content-Type) is the job of Rack, with the exception of the “Date” and “Status” header.