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 = HEARTBEAT_RESPONSE.dup
    response[1] = Hash[response[1]]
    throw :halt, response
  end
end