Class: Tynn::Response
- Inherits:
-
Syro::Response
- Object
- Syro::Response
- Tynn::Response
- Defined in:
- lib/tynn/response.rb
Overview
Public: It provides convenience methods to construct a Rack response.
Examples
res = Tynn::Response.new
res.status = 200
res["Content-Type"] = "text/html"
res.write("foo")
res.finish
# => [200, { "Content-Type" => "text/html", "Content-Length" => 3 }, ["foo"]]