module Roda::RodaPlugins::Heartbeat::InstanceMethods

def _roda_before_20__heartbeat

If the request is for a heartbeat path, return the heartbeat response.
def _roda_before_20__heartbeat
  if env['PATH_INFO'] == opts[:heartbeat_path]
    response = @_response
    response.status = 200
    response[RodaResponseHeaders::CONTENT_TYPE] = 'text/plain'
    response.write 'OK'
    throw :halt, response.finish
  end
end