- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MethodConnect (0.27 sec)
-
src/net/http/method.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 04 22:11:56 UTC 2016 - 517 bytes - Viewed (0) -
pkg/hbone/server.go
h2.AllowHTTP = true h2Server := &http2.Server{} handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method == http.MethodConnect { if handleConnect(w, r) { return } } else { log.Errorf("non-CONNECT: %v", r.Method) w.WriteHeader(http.StatusMethodNotAllowed) } }) hs := &http.Server{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 10 02:05:07 UTC 2022 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go
b, err := httputil.DumpRequest(req, false) if err != nil { h.t.Logf("Failed to dump request, host=%s: %v", req.Host, err) } else { h.t.Logf("Proxy Request: %s", string(b)) } if req.Method != http.MethodConnect { h.httpProxy.ServeHTTP(rw, req) return } // CONNECT proxy sconn, err := net.Dial("tcp", req.Host) if err != nil { h.t.Logf("Failed to dial proxy backend, host=%s: %v", req.Host, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 20 14:58:46 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/hbone/dialer.go
// * Less visibility into i/o // * http will call conn.Close, which will close before we want to (finished writing response). pr, pw := io.Pipe() r, err := http.NewRequest(http.MethodConnect, url, pr) if err != nil { return fmt.Errorf("new request: %v", err) } r.Host = address // Initiate CONNECT. log.Infof("initiate CONNECT to %v via %v", r.Host, url)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 15:56:41 UTC 2023 - 5.1K bytes - Viewed (0)