- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for readWrite (0.26 sec)
-
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) -
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) -
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) -
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)