v2.10.0
What's Changed
- Improve /drip semantics by @mccutchen in #132
- Standardize common content types by @mccutchen in #134
- Improve and standardize error handling by @mccutchen in #135
- Consistently parse and validate user-provided status codes by @mccutchen in #137
- Major test suite overhaul in #131 and #133
⚠️ Response format changes ⚠️
- The behavior of the
/dripendpoint has been adjusted slightly. In particular, the endpoint now waits until after the initial delay to start the response (i.e. write the status code), rather than starting the response immediately and then waiting for the initial delay to write the body. - The standard Content-Type used for JSON responses has been changed from the non-standard
application/json; encoding=utf-8to the standardapplication/json; charset=utf-8 - Error responses generated by go-httpbin itself (e.g. due to invalid input) are returned as structured JSON:
{ "status_code": 400, "error": "Bad Request", "detail": "invalid status code: 1024 not in range [100, 599]" }
Full Changelog: v2.9.2...v2.10.0