How does HijackConnect work in goproxy?

From the documentation, it seems like HijackConnect is for hijacking HTTPS connections. But there is an example in the code where HijackConnect is called as follows (for HTTP connections, port 80).

    HijackConnect(func(req *http.Request, client net.Conn, ctx *goproxy.ProxyCtx) {

Can anyone explain what is going on here?

Maybe opening an issue on GitHub will get you an answer.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.