Repository navigation
Bug fix release. No changes to the exported API.
Bug fixes
HeaderPresent,QueryPresentand theirNotPresentcounterparts on mock requests now check for the key itself instead of its first value, as documented. A bare?flag,?flag=or an empty-valued header counts as present, soHeaderNotPresentandQueryNotPresentnow reject requests that carry such keys. (#178, fixes #177. Thanks @bensynapse.)Response.HeaderPresentandResponse.HeaderNotPresentapply the same rule to response headers: an empty-valued header counts as present. (#179)
Internal
- Error checks that can never fire and dead code removed from the hash helper, assertion messages, sequence diagram rendering, request and response dumps and
difflib. No behaviour change. (#176) - Test coverage raised to 99.9% and published to Coveralls, with a badge in the README. (#175, #176)
Docs
- README rewritten as a complete guide to the library. (#173)
- New example showing how to test handler timeouts with
http.TimeoutHandler. (#170) - The retired Go Report Card badge is removed. (#174)