code: func (pcond *ReqProxyConds) HandleConnectFunc(f func(host string, ctx *ProxyCtx) (*ConnectAction, string)) {
  	pcond.HandleConnect(FuncHttpsHandler(f))
  }
docs: // HandleConnectFunc is equivalent to HandleConnect,
  // for example, accepting CONNECT request if they contain a password in header
  //	io.WriteString(h,password)
  //	passHash := h.Sum(nil)
  //	proxy.OnRequest().HandleConnectFunc(func(host string, ctx *ProxyCtx) (*ConnectAction, string) {
  //		c := sha1.New()
  //		io.WriteString(c,ctx.Req.Header.Get("X-GoProxy-Auth"))
  //		if c.Sum(nil) == passHash {
  //			return OkConnect, host
  //		}
  //		return RejectConnect, host
  //	})