Update docs on ResponseWriter and Handler around concurrency.
Also add a test.
The Handler docs were old and used "object" a lot. It was also too
Updates #13659 (new issue found in http2 while writing the test)
Reviewed-by: Russ Cox <firstname.lastname@example.org>
Run-TryBot: Brad Fitzpatrick <email@example.com>
This makes the Transport ignore 100-continue responses from servers,
rather than get confused by them. This is good enough for
golang/go#13659. I filed golang/go#13851 to do better later, but
that's less important.
This CL also adds comprehensive tests for the 36 different ways that
frames can be arranged from servers when reading a response. That
exposed some bugs (now fixed), and even affected the http2 API: I'd
added a END_STREAM accessor on CONTINUATION frames, but it's not even
I also renamed some confusing variables which sounded too similar.
Reviewed-by: Andrew Gerrand <firstname.lastname@example.org>