Skip to content

v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Sep 04:03

What's Changed

feat!: add ContentType, expanded Accept parsing by @rvagg in #6

  • ContentType was added to represent a full Trustless Gateway content type for use as Content-Type header and Accept header
  • CheckFormat(), ParseAccept() and ParseContentType() have all changed signatures to incorporate ContentType
  • ParseAccept() now returns an preferentially ordered list of compatible Trustless Gateway content types
  • ResponseContentTypeHeader() and RequestAcceptHeader() have been deprecated, prefer ContentType#String() instead, with DefaultContentType().WithDuplicates(duplicates).String() replicating the original behaviour of these two functions.

Full Changelog: v0.1.0...v0.2.0