Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for readWrite (0.17 sec)

  1. src/net/http/server.go

    	// After a call to Hijack, the original Request.Body must not
    	// be used. The original Request's Context remains valid and
    	// is not canceled until the Request's ServeHTTP method
    	// returns.
    	Hijack() (net.Conn, *bufio.ReadWriter, error)
    }
    
    // The CloseNotifier interface is implemented by ResponseWriters which
    // allow detecting when the underlying connection has gone away.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	}
    
    	for i, v := range ret {
    		if v.CanAddr() {
    			t.Errorf("result %d is addressable", i)
    		}
    	}
    }
    
    func TestCallConvert(t *testing.T) {
    	v := ValueOf(new(io.ReadWriter)).Elem()
    	f := ValueOf(func(r io.Reader) io.Reader { return r })
    	out := f.Call([]Value{v})
    	if len(out) != 1 || out[0].Type() != TypeOf(new(io.Reader)).Elem() || !out[0].IsNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/reflect/value.go

    		fl := v.flag&(flagAddr|flagIndir) | v.flag.ro()
    		fl |= flag(dst.Kind())
    		return Value{dst, v.ptr, fl}
    
    	case implements(dst, v.typ()):
    		if v.Kind() == Interface && v.IsNil() {
    			// A nil ReadWriter passed to nil Reader is OK,
    			// but using ifaceE2I below will panic.
    			// Avoid the panic by returning a nil dst (e.g., Reader) explicitly.
    			return Value{dst, nil, flag(Interface)}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    		w.WriteHeader(StatusSwitchingProtocols)
    		c, buf, err := w.(Hijacker).Hijack()
    		if err != nil {
    			return
    		}
    		defer c.Close()
    
    		// Copy from the *bufio.ReadWriter, which may contain buffered data.
    		// Copy to the net.Conn, to avoid buffering the output.
    		io.Copy(c, buf)
    	}), func(ts *httptest.Server) {
    		ts.Config.SetKeepAlivesEnabled(false)
    	}).ts
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    	Close() error
    }
    
    type Writer interface {
    	Write(p []byte) (n int, err error)
    	Close() error
    }
    
    // ReadWriter's methods are Read, Write, and Close.
    type ReadWriter interface {
    	Reader  // includes methods of Reader in ReadWriter's method set
    	Writer  // includes methods of Writer in ReadWriter's method set
    }
    </pre>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top