class Rack::ServerStatus
Public Class Methods
new(app)
click to toggle source
# File lib/rack/server_status.rb, line 3 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/rack/server_status.rb, line 7 def call(env) return [200, {'Content-Type' => 'text/plain'}, ['OK']] if env['PATH_INFO'] == '/status' @app.call(env) end