When I use any proxy like Burp or Owasp ZAP, I see that many applications follow the proxy path and some doesn't and they just flow data directly.
I want to know what code is used for this, so that I can choose my own application to be proxy aware or not.