Does TCP/UDP-level traffic goes into per-app packet tunnel when NEProxySettings are considered

Hi! I am building a simple per-app VPN application. I want the traffic from the certain appRules-specified application to go to the HTTP/HTTPS proxy server. I am lacking the following pieces of information:

  1. When proxy settings are configured who receives the traffic first: a proxy server or a packet tunnel provider? Since HTTP and HTTPS protocols are on the highest level of the networking stack I expect the proxy server to receive the traffic first.
  2. Will the packet tunnel provider receive TCP/UDP traffic from the specified applications with specified HTTP/HTTPS proxy settings?
Does TCP/UDP-level traffic goes into per-app packet tunnel when NEProxySettings are considered
 
 
Q