Skip to content

Hare (v1.0.0)

Compare
Choose a tag to compare
@intUnderflow intUnderflow released this 18 Jan 17:51
· 49 commits to master since this release

This release adds support for protobuf over the wire, among other improvements

What's Changed

  • Fixed bug where contexts are not cancelled
  • Refactored request cancellation
  • Fixed (erroneous) go vet error in Go 1.7
  • Typhon now returns an error in Decode if the response failed
  • Fixed shadowing when decoding responses
  • Support status PreconditionFailed
  • Allow non-TCP communication
  • Added ExpirationFilter
  • Removed TimeoutFilter and default timeouts
  • Allow retrieving the matched pattern from a Router
  • Log lines removed
  • Allow streaming responses
  • Added and exposed RoundTripper so it can be customised by callers
  • Fix leak when infinite contexts are used to make requests
  • Closes response body on any read error, or when exhausted
  • Automatically closes request/response bodies when they are decoded
  • Automatically buffers chunk response bodies which exceed 5MB
  • Improvements to Router
  • Provides a hook to get the Router used to dispatch a request
  • Made it possible to get the Request for a Response
  • Added HTTP status codes in comments to make referencing easier
  • Improved error handling for client disconnections
  • HTTP/2.0 support
  • Typhon now sets content length in the request/response Write method
  • Removed unused Router.re field
  • Added support for setting metadata through context
  • Added ResponseWithCode method to Typhon request
  • Enabled aborting streamer with error by
  • Add support for encoding and decoding protobuf messages

Full Changelog: rabbit...hare