- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for MethodConnect (0.17 sec)
-
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) -
pkg/config/validation/validation.go
supportedMethods = sets.New( http.MethodGet, http.MethodHead, http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete, http.MethodConnect, http.MethodOptions, http.MethodTrace, ) scope = log.RegisterScope("validation", "CRD validation debugging") // EmptyValidate is a Validate that does nothing and returns no error.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"ListenAndServeTLS", Func, 0}, {"LocalAddrContextKey", Var, 7}, {"MaxBytesError", Type, 19}, {"MaxBytesError.Limit", Field, 19}, {"MaxBytesHandler", Func, 18}, {"MaxBytesReader", Func, 0}, {"MethodConnect", Const, 6}, {"MethodDelete", Const, 6}, {"MethodGet", Const, 6}, {"MethodHead", Const, 6}, {"MethodOptions", Const, 6}, {"MethodPatch", Const, 6}, {"MethodPost", Const, 6},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)