I am using Laravel 5.2. I have an api endpoint that receives calls from another server.
The other server doesn't need to wait to the response from my app. It is suppose to work in a way that the other server 'push' info to my app in a non-blocking way as much as possible.
I know that in regular php it can be achieved by sending:
header("HTTP/1.1 200 OK");
header('Connection: close');
At the beginning of the response.
Is there a way in the laravel controller to achieve the same thing?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire