Proxy authorization in serverconnect event

Is there any way to know proxy authorization user in serverconnect event?
I can use http_connect event instead?

Hi,

I don’t think you have access to proxy authorization in serverconnect, but http_connect should work! See https://github.com/mitmproxy/mitmproxy/blob/2e8bc12795ea169d351aa3e29f04edd4b806b63f/mitmproxy/proxy/protocol/http.py#L257-L260.

I try it and it works.
Perfect!