v0.2.0
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 asContent-Type
header andAccept
headerCheckFormat()
,ParseAccept()
andParseContentType()
have all changed signatures to incorporateContentType
ParseAccept()
now returns an preferentially ordered list of compatible Trustless Gateway content typesResponseContentTypeHeader()
andRequestAcceptHeader()
have been deprecated, preferContentType#String()
instead, withDefaultContentType().WithDuplicates(duplicates).String()
replicating the original behaviour of these two functions.
Full Changelog: v0.1.0...v0.2.0