class RackHealthcheck
Constants
- OK_RESPONSE
Public Class Methods
new(app)
click to toggle source
# File lib/rack_healthcheck.rb, line 4 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/rack_healthcheck.rb, line 8 def call(env) if env['PATH_INFO'.freeze] == '/healthcheck'.freeze return OK_RESPONSE else @app.call(env) end end