How to use the 'input' object as a whole

Hi,

I am using Xano as a means of logging network activity when calling external APIs from my app, I would like to extensively log requests coming in and out for trail reasons. So, it sits almost like a piece of middleware in addition to functioning as a database. Is there any way to have access to the 'input' object (as appears below)?
[Screenshot 2021-07-01 at 12.13.17.png]
In fact, being able to just have the env object would be super useful too as opposed to having to explicitly state which part of it are needed. 

I can see that the data coming in is exactly how I need to record it, and my current flow is as follows:
- Data comes in.
- Create a new object (outgoing_request) to store all the request data.
- Add a new property onto the object (ie. outgoing_request.headers) to store $http_headers.
- Add a new property onto the object (ie. outgoing_request.input) and store the input data in there. 

Generating a new discrete property on the object for every input is not an option as it is far too labour intensive, however it is currently the only path I can see.

Please let me know if anything is unclear.
Thanks!
Other
4 replies