]> Cypherpunks repositories - gostls13.git/commit
net/http: more HTTP/2 tests and fixes
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 24 Nov 2015 16:55:43 +0000 (08:55 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 25 Nov 2015 05:18:46 +0000 (05:18 +0000)
commite5956bca418bb8528509665ae753eada2024b9e3
tree0ef818ee552abdfeb4fd779ddc84fb1358a3db52
parentfd2bc8681d10d3ca98647f4911e498d4e341ab65
net/http: more HTTP/2 tests and fixes

This compares the behavior of server handlers and the net/http
Transport in both HTTP/1 and HTTP/2 mode and verifies they're the
same.

This also moves some client<->server tests into clientserver_test.go.
Many of them were in serve_test.go or transport_test.go but were
basically testing both.

h2_bundle.go is an update of the golang.org/x/net/http2 code
from https://golang.org/cl/17204 (x/net git rev c745c36eab10)

Fixes #13315
Fixes #13316
Fixes #13317
Fixes other stuff found in the process too
Updates #6891 (http2 support in general)

Change-Id: Id9c45fad44cdf70ac95d2b89e578d66e882d3cc2
Reviewed-on: https://go-review.googlesource.com/17205
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/clientserver_test.go [new file with mode: 0644]
src/net/http/h2_bundle.go
src/net/http/main_test.go
src/net/http/serve_test.go
src/net/http/transport_test.go