Skip to content

Commit 1f2ee9d

Browse files
authored
Merge pull request #218 from bloodorangeio/accept-header
Add placeholder for content negotiation
2 parents 015626d + 9453c8d commit 1f2ee9d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

content-negotiation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Content Negotiation
2+
3+
TODO - Please see
4+
[issue #212](https://github.com/opencontainers/distribution-spec/issues/212).

spec.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ In order to test a registry's conformance against these workflow categories, ple
122122
### Workflow Categories
123123

124124
#### Pull
125+
125126
The process of pulling an artifact centers around retrieving two components: the manifest and one or more blobs.
126127

127128
Typically, the first step in pulling an artifact is to retrieve the manifest. However, you MAY retrieve content from the registry in any order.
@@ -136,6 +137,10 @@ The `<reference>` MUST NOT be in any other format. Throughout this document, `<n
136137

137138
`[a-z0-9]+([._-][a-z0-9]+)*(/[a-z0-9]+([._-][a-z0-9]+)*)*`
138139

140+
The client SHOULD include an `Accept` header indicating which manifest content types it supports.
141+
In a successful response, the `Content-Type` header will indicate the type of the returned manifest.
142+
For more information on the use of `Accept` headers and content negotiation, please see [Content Negotiation](./content-negortiation.md)
143+
139144
A GET request to an existing manifest URL MUST provide the expected manifest, with a response code that MUST be `200 OK`.
140145
A successful response SHOULD contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
141146

0 commit comments

Comments
 (0)