MAKS\AmqpAgent\Helper\Utility::respond

Returns an HTTP Response to the browser and lets blocking code that comes after this function to continue executing in the background.

This function is useful for example in Controllers that do some long-running tasks, and you just want to inform the client that the job has been started. Please note that this function is tested MANUALLY ONLY, it is provided as is, there is no guarantee that it will work as expected nor on all platforms.