how to pass body_bytes_sent to reversed proxy when downloading has been done?

2022-06-20 Thread alireza
Hello how to pass body_bytes_sent to reversed proxy when downloading has been done? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,294537,294537#msg-294537 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...

access to "sent_bytes_length" and send it to API when the user cancel downloading

2022-06-20 Thread alireza
Hello my friends I want to access "sent_bytes_length" of file which has been downloaded incompletely by user and send it to http://locahost:8080 My API is written by nodejs I tried ngx.fetch and r.subrequest to handle it inside "custom access log function" by NJS but it does not allow me to use