Unicorn::HttpResponse

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.

Constants

CODES

Every standard HTTP code mapped to the appropriate message.

CRLF

Public Instance Methods

http_response_write(socket, status, headers, body) view method source

writes the rack_response to socket as an HTTP response

Originally generated with the Darkfish Rdoc Generator 2, modified by wrongdoc.