Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Hijack (0.11 sec)

  1. src/net/http/serve_test.go

    			w.Header().Set("Connection", "close")
    			fmt.Fprintf(w, "Hello.")
    		},
    		"/hijack": func(w ResponseWriter, r *Request) {
    			c, _, _ := w.(Hijacker).Hijack()
    			c.Write([]byte("HTTP/1.0 200 OK\r\nConnection: close\r\n\r\nHello."))
    			c.Close()
    		},
    		"/hijack-panic": func(w ResponseWriter, r *Request) {
    			c, _, _ := w.(Hijacker).Hijack()
    			c.Write([]byte("HTTP/1.0 200 OK\r\nConnection: close\r\n\r\nHello."))
    			c.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    				proxyCh <- r
    				// Implement an entire CONNECT proxy
    				if r.Method == "CONNECT" {
    					hijacker, ok := w.(Hijacker)
    					if !ok {
    						t.Errorf("hijack not allowed")
    						return
    					}
    					clientConn, _, err := hijacker.Hijack()
    					if err != nil {
    						t.Errorf("hijacking failed")
    						return
    					}
    					res := &Response{
    						StatusCode: StatusOK,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  3. src/net/http/server.go

    	w.WriteHeader(StatusExpectationFailed)
    	w.finishRequest()
    }
    
    // Hijack implements the [Hijacker.Hijack] method. Our response is both a [ResponseWriter]
    // and a [Hijacker].
    func (w *response) Hijack() (rwc net.Conn, buf *bufio.ReadWriter, err error) {
    	if w.handlerDone.Load() {
    		panic("net/http: Hijack called after ServeHTTP finished")
    	}
    	w.disableWriteContinue()
    	if w.wroteHeader {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/garbagecollector_test.go

    	if strings.Contains(request.URL.RawQuery, "watch=true") {
    		hijacker, ok := response.(http.Hijacker)
    		if !ok {
    			return
    		}
    		connection, _, err := hijacker.Hijack()
    		if err != nil {
    			return
    		}
    		defer connection.Close()
    		time.Sleep(30 * time.Second)
    	}
    }
    
    // testServerAndClientConfig returns a server that listens and a config that can reference it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    devices.resinstaging.io
    
    // RethinkDB : https://www.rethinkdb.com/
    // Submitted by Chris Kastorff <******@****.***>
    hzc.io
    
    // Revitalised Limited : http://www.revitalised.co.uk
    // Submitted by Jack Price <jack@revitalised.co.uk>
    wellbeingzone.eu
    wellbeingzone.co.uk
    
    // Rico Developments Limited : https://adimo.co
    // Submitted by Colin Brown <******@****.***>
    adimo.co.uk
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 240.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      Last came a little feeble, squeaking voice, (`That's Bill,'
    thought Alice,) `Well, I hardly know--No more, thank ye; I'm
    better now--but I'm a deal too flustered to tell you--all I know
    is, something comes at me like a Jack-in-the-box, and up I goes
    like a sky-rocket!'
    
      `So you did, old fellow!' said the others.
    
      `We must burn the house down!' said the Rabbit's voice; and
    Alice called out as loud as she could, `If you do.  I'll set
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 145.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      Last came a little feeble, squeaking voice, (`That's Bill,'
    thought Alice,) `Well, I hardly know--No more, thank ye; I'm
    better now--but I'm a deal too flustered to tell you--all I know
    is, something comes at me like a Jack-in-the-box, and up I goes
    like a sky-rocket!'
    
      `So you did, old fellow!' said the others.
    
      `We must burn the house down!' said the Rabbit's voice; and
    Alice called out as loud as she could, `If you do.  I'll set
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 29 21:35:03 UTC 2012
    - 145.2K bytes
    - Viewed (0)
Back to top