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).

proxy.OnRequest(goproxy.ReqHostMatches(regexp.MustCompile("^.*: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.