Closed achingbrain closed 4 months ago
@lidel @2color please take another look - I've added a lot more tests, support for wildcards and q-factor and also the IPLD serialized type conversions from https://specs.ipfs.tech/http-gateways/path-gateway/#accept-request-header
Let users get raw data back from CIDs that would otherwise trigger decoding as JSON or CBOR etc by specifying an
Accept
header.Make sure the content-type matches the accept header:
Support multiple values, match the first one:
If they specify an Accept header we can't honour, one that doesn't match the eventual content type, or one returned by the content type parser return a 406:
Change checklist