Skip to content

Commit 07d3dd7

Browse files
committed
Added conditional headers to HEAD request documentation
Currently, conditional headers, e.g. If-Match, If-Modified-Since, etc., are listed for the GET objects API call, but not in the HEAD objects call in the api-ref documentation. This patch adds the missing headers to the HEAD documentation. Change-Id: Idd1c248cc27415d148a1b9a5eb2e95f25b8c4da0 Closes-Bug: #1630212
1 parent e67a57f commit 07d3dd7

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

api-ref/source/parameters.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,18 @@ If-Modified-Since:
196196
in: header
197197
required: false
198198
type: string
199-
If-None-Match:
199+
If-None-Match-get-request:
200+
description: |
201+
A client that has one or more entities previously
202+
obtained from the resource can verify that none of those entities is
203+
current by including a list of their associated entity tags in the
204+
``If-None-Match header`` field.
205+
See `Request for Comments: 2616 <http://www.ietf.org/rfc/rfc2616.txt>`_
206+
for details.
207+
in: header
208+
required: false
209+
type: string
210+
If-None-Match-put-request:
200211
description: |
201212
In combination with ``Expect: 100-Continue``,
202213
specify an ``"If-None-Match: *"`` header to query whether the

api-ref/source/storage-object-services.inc

+6-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Request
113113
- multipart-manifest: multipart-manifest_get
114114
- Range: Range
115115
- If-Match: If-Match
116-
- If-None-Match: If-None-Match
116+
- If-None-Match: If-None-Match-get-request
117117
- If-Modified-Since: If-Modified-Since
118118
- If-Unmodified-Since: If-Unmodified-Since
119119
- X-Trans-Id-Extra: X-Trans-Id-Extra
@@ -255,7 +255,7 @@ Request
255255
- X-Delete-At: X-Delete-At
256256
- X-Delete-After: X-Delete-After
257257
- X-Object-Meta-name: X-Object-Meta-name
258-
- If-None-Match: If-None-Match
258+
- If-None-Match: If-None-Match-put-request
259259
- X-Trans-Id-Extra: X-Trans-Id-Extra
260260

261261

@@ -565,6 +565,10 @@ Request
565565
- filename: filename
566566
- multipart-manifest: multipart-manifest_head
567567
- X-Newest: X-Newest
568+
- If-Match: If-Match
569+
- If-None-Match: If-None-Match-get-request
570+
- If-Modified-Since: If-Modified-Since
571+
- If-Unmodified-Since: If-Unmodified-Since
568572
- X-Trans-Id-Extra: X-Trans-Id-Extra
569573

570574

0 commit comments

Comments
 (0)