Modified example according to the newest changes.
Now response()->sentHeaders constains the HTTP request performed agains the API server.
Modified example according to latest changes.