summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-27 14:06:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-02-27 14:07:06 (GMT)
commit157e361ff7aae3f20b2d71229182d304ea792f05 (patch)
treed7424c6de69e88f95a21d1fbf2150770b3bcfef0
parent9ae04021982826f863d03d85173a382c656a582b (diff)
parent9b56aabd99d7412777ef8182bae2298e922d22b5 (diff)
downloadCMake-157e361ff7aae3f20b2d71229182d304ea792f05.zip
CMake-157e361ff7aae3f20b2d71229182d304ea792f05.tar.gz
CMake-157e361ff7aae3f20b2d71229182d304ea792f05.tar.bz2
Merge topic 'dochttp'
9b56aabd99 Help:file: document HTTPHEADER more Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8250
-rw-r--r--Help/command/file.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index df895d0..6ab7421 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -1077,7 +1077,14 @@ Options to both ``DOWNLOAD`` and ``UPLOAD`` are:
``HTTPHEADER <HTTP-header>``
.. versionadded:: 3.7
- HTTP header for operation. Suboption can be repeated several times.
+ HTTP header for ``DOWNLOAD`` and ``UPLOAD`` operations. ``HTTPHEADER`` can be
+ repeated for multiple options:
+
+ .. code-block:: cmake
+
+ file(DOWNLOAD <url>
+ HTTPHEADER "Authorization: Bearer <auth-token>"
+ HTTPHEADER "UserAgent: Mozilla/5.0")
``NETRC <level>``
.. versionadded:: 3.11