heartbeat method

void heartbeat (RequestContext req, ResponseContext res)