StackExchange / httpunit

httpUnit tests compliance of web and net servers with desired output.
https://godoc.org/github.com/StackExchange/httpunit
MIT License
164 stars 13 forks source link

Add HTTP 2.0 feature testing #14

Open tlimoncelli opened 7 years ago

tlimoncelli commented 7 years ago

We need the ability to:

captncraig commented 7 years ago

Very interesting idea. In order of difficulty:

  1. Restricting to 1.1 is easy. Just override Transport.TLSNextProto as per the http docs.
  2. Restricting to http 2 is not so apparent to me, but we can read the Proto used from the response. That may be sufficient?
  3. Not sure how to test server push. There is some code in the http2 package that looks feasable, but it is not clear how to use it. Still doing research there.
captncraig commented 7 years ago

Still looking for a good way to verify push frames.

http://stackoverflow.com/questions/43852955/how-can-i-read-http-2-push-frames-from-a-net-http-request doesn't have anything too promising yet.

Links to https://github.com/golang/go/issues/18594 which is a discussion about adding higher level client support sometime in the future.

tlimoncelli commented 7 years ago

This is all low priority. The push tests aren't important for now.