Writing tests shook out a few bugs:
- Pooling wasn't working well. We were trying to connect
after already having been connected.
- We weren't writing response bodies to the cache.
- We weren't capturing the request time for the cache.
- MockSpdyServer wasn't trimming headers.
New files in this change aren't new, they're just inner classes promoted
to top-level classes for better sharing.
This is like MockWebServer, but it speaks SPDY behind the scenes
instead of HTTP. The goal with this change is to make it very easy
to test interactions between SPDY and HTTP features like cookies,
fault tolerance and caching.
In particular:
- Don't require OkHttp to depend on Jetty's non-boot package for
Android. This was causing ugly, confidence-smashing dalvik
errors in Android apps.
- Don't prevent HTTP on Java6 just because SPDY isn't available.
This uses gross reflection and dynamic proxies! That's sad, but
it's encapsulated so users won't have to know it exists.
* Add checkstyle and correct anything that failed.
* Expand README.md to have more info for the upcoming release.
* Resolve plugin warnings in pom.xml.