mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
Make the pipe code take an interface as the backing store. Now a pipe is something that's goroutine-safe and does the Cond waits but its underlying data is now an interface: anything that's a ReaderWriter with a Len method (such as a *bytes.Buffer), or a fixedBuffer (renamed in this CL from 'buffer'). This opens the ground to having a non-fixed buffer used with pipe. This also moves the CloseWithError code up into the pipe code, out of fixedBuffer. Change-Id: Ia3b853e8aa8920807b705ff4e41bed934a8c67b7 Reviewed-on: https://go-review.googlesource.com/16312 Reviewed-by: Blake Mizerany <blake.mizerany@gmail.com>
This is a work-in-progress HTTP/2 implementation for Go. It will eventually live in the Go standard library and won't require any changes to your code to use. It will just be automatic. Status: * The server support is pretty good. A few things are missing but are being worked on. * The client work has just started but shares a lot of code is coming along much quicker. Docs are at https://godoc.org/golang.org/x/net/http2 Demo test server at https://http2.golang.org/ Help & bug reports welcome! Contributing: https://golang.org/doc/contribute.html Bugs: https://golang.org/issue/new?title=x/net/http2:+