class Ruter::Core::Response

Public: It provides convenience methods to construct a Rack response.

Examples

res = Ruter::Core::Response.new

res.status = 200
res["Content-Type"] = "text/html"
res.write("foo")

res.finish
# => [200, { "Content-Type" => "text/html", "Content-Length" => 3 }, ["foo"]]