1
0
mirror of https://github.com/opencontainers/distribution-spec.git synced 2025-04-18 20:04:03 +03:00
distribution-spec/content-negotiation.md
2021-01-28 14:41:28 -05:00

4.0 KiB

Content Negotiation

TODO - Please see issue #212.

Accept Multi? Result (type) Notes
<not present> manifest.v1+prettyjws v1, linux/amd64, for backward compatibility with old, non-v2 clients
*/* manifest.v1+prettyjws v1, linux/amd64, for backward compatibility with old, non-v2 clients (same as above)
application/json manifest.v1+prettyjws v1, linux/amd64, for backward compatibility with old, non-v2 clients (same as above)
manifest.v1+json manifest.v1+prettyjws v1, matching Accept header (linux/amd64 for backward compatibility)
manifest.v2+json manifest.v2+json v2, matching Accept header (linux/amd64 for backward compatibility)
manifest.list.v2+json manifest.list.v2+json v2 manifest list, matching Accept header
manifest.list.v2+json,
manifest.v2+json,
manifest.v1+json
manifest.list.v2+json v2 manifest list, matching first Accept header
manifest.v2+json,
manifest.list.v2+json,
manifest.v1+json
manifest.v2+json ⚠️ prefers manifest list over manifest (ignoring order?)
<not present> - manifest.v1+prettyjws same as multi-manifest repo
*/* - manifest.v1+prettyjws same as multi-manifest repo
application/json - manifest.v1+prettyjws same as multi-manifest repo
manifest.v1+json - manifest.v1+prettyjws same as multi-manifest repo
manifest.v2+json - manifest.v2+json same as multi-manifest repo
manifest.list.v2+json - manifest.list.v2+json ⚠️ somewhat unexpected to return a v1 manifest for a v2-capable client
manifest.list.v2+json,
manifest.v2+json,
manifest.v1+json
- manifest.list.v2+json v2 manifest, matching first "acceptable" Accept header (by lack of a manifest-list)
manifest.v2+json,
manifest.list.v2+json,
manifest.v1+json
- manifest.v2+json v2 manifest, matching first "acceptable" Accept header (by lack of a manifest-list)