cheat sheets.

$ cheat rack
== Rackup

hello.ru:
  require 'hello'

  use Rack::Reloader
  use Rack::CommonLogger
  use Rack::ShowExceptions
  use Rack::ShowStatus

  run HelloApp.new

run server:
  % rackup hello.ru


== Calling convention

  def call(env)
    [StatusCode, { "Header" => "Value" }, ["Body"]]
  end
Version 2, updated 801 days ago.
. o 0 ( | previous | history | revert to | current | diff )
( add new | see all )