forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs][Maps] Include details about the headers requested and served b…
…y EMS (elastic#171659) Fixes elastic#129751 ## Summary Extends the EMS documentation to detail request and response headers the browser sends to EMS resources and includes also a minimal `curl` command to request the response headers for same resource as well. I tried to edit this in a way it does not take the whole page but happy to hear feedback or ideas on how to make this easier to digest. https://github.com/elastic/kibana/assets/188264/27e83a5f-4d01-47a8-af2c-3739576bf56e Also, I am not sure if this is something worth adding to our release notes 🤔 (cherry picked from commit 0a7299b) # Conflicts: # docs/maps/connect-to-ems.asciidoc
- Loading branch information
Showing
6 changed files
with
668 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
|
||
++++ | ||
<div class="tabs" data-tab-group="file-data-tab-group-name"> | ||
<div role="tablist" aria-label="Request and response to the File Service for Dataset"> | ||
<button role="tab" | ||
aria-selected="true" | ||
aria-controls="file-data-tab-group-curl" | ||
id="file-data-group-curl"> | ||
Curl example | ||
</button> | ||
<button role="tab" | ||
aria-selected="false" | ||
aria-controls="file-data-tab-group-request" | ||
id="file-data-group-request" | ||
tabindex="-1"> | ||
Request | ||
</button> | ||
<button role="tab" | ||
aria-selected="false" | ||
aria-controls="file-data-tab-group-response" | ||
id="file-data-group-response" | ||
tabindex="-2"> | ||
Response | ||
</button> | ||
</div> | ||
<div tabindex="0" | ||
role="tabpanel" | ||
id="file-data-tab-group-curl" | ||
aria-labelledby="file-data-group-curl"> | ||
++++ | ||
[%collapsible] | ||
==== | ||
[source,bash,subs="attributes"] | ||
---------------------------------- | ||
curl -I 'https://vector.maps.elastic.co/files/world_countries_v7.topo.json?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version={version}' \ | ||
-H 'User-Agent: curl/7.81.0' \ | ||
-H 'Accept: */*' \ | ||
-H 'Accept-Encoding: gzip, deflate, br' | ||
---------------------------------- | ||
|
||
Server response | ||
|
||
[source,regex] | ||
---------------------------------- | ||
HTTP/2 200 | ||
x-guploader-uploadid: ABPtcPpmMffchVgfHIr-SSC00WORo145oV-1q0asjqRvjLV_7cIgyfLRfofXV-BG7huMYABFypblcgdgXRBARhpo2c88ow | ||
x-goog-generation: 1689593325442971 | ||
x-goog-metageneration: 1 | ||
x-goog-stored-content-encoding: gzip | ||
x-goog-stored-content-length: 587241 | ||
content-encoding: gzip | ||
x-goog-hash: crc32c=OcROeg== | ||
x-goog-hash: md5=8KKIwD6wbKa3YYXTnnFcZw== | ||
x-goog-storage-class: MULTI_REGIONAL | ||
accept-ranges: bytes | ||
content-length: 587241 | ||
access-control-allow-origin: * | ||
access-control-expose-headers: Authorization, Content-Length, Content-Type, Date, Server, Transfer-Encoding, X-GUploader-UploadID, X-Google-Trace, accept, elastic-api-version, kbn-name, kbn-version, origin | ||
server: UploadServer | ||
date: Tue, 21 Nov 2023 14:22:16 GMT | ||
expires: Tue, 21 Nov 2023 15:22:16 GMT | ||
cache-control: public, max-age=3600,no-transform | ||
age: 2202 | ||
last-modified: Mon, 17 Jul 2023 11:28:45 GMT | ||
etag: "f0a288c03eb06ca6b76185d39e715c67" | ||
content-type: application/json | ||
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 | ||
---------------------------------- | ||
==== | ||
++++ | ||
</div> | ||
<div tabindex="1" | ||
role="tabpanel" | ||
id="file-data-tab-group-request" | ||
aria-labelledby="file-data-group-request" | ||
hidden=""> | ||
++++ | ||
[source,regex,subs="attributes"] | ||
---------------------------------- | ||
Host: vector.maps.elastic.co | ||
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0 | ||
Accept: */* | ||
Accept-Language: en-US,en;q=0.5 | ||
Accept-Encoding: gzip, deflate, br | ||
Referer: {ems-headers-url}/app/maps/map | ||
Origin: {ems-headers-url} | ||
Connection: keep-alive | ||
Sec-Fetch-Dest: empty | ||
Sec-Fetch-Mode: cors | ||
Sec-Fetch-Site: cross-site | ||
Pragma: no-cache | ||
Cache-Control: no-cache | ||
---------------------------------- | ||
++++ | ||
</div> | ||
<div tabindex="2" | ||
role="tabpanel" | ||
id="file-data-tab-group-response" | ||
aria-labelledby="file-data-group-response" | ||
hidden=""> | ||
++++ | ||
[source,regex] | ||
---------------------------------- | ||
x-guploader-uploadid: ABPtcPqIDSg5tyavvwwtJQa8a8iycoXOCkHBp_2YJbJJnQgb5XMD7nFwRUogg00Ou27VFIs95v7L99OMnvXR1bcb9RW-xQ | ||
x-goog-generation: 1689593325442971 | ||
x-goog-metageneration: 1 | ||
x-goog-stored-content-encoding: gzip | ||
x-goog-stored-content-length: 587241 | ||
content-encoding: gzip | ||
x-goog-hash: crc32c=OcROeg== | ||
x-goog-hash: md5=8KKIwD6wbKa3YYXTnnFcZw== | ||
x-goog-storage-class: MULTI_REGIONAL | ||
accept-ranges: bytes | ||
content-length: 587241 | ||
access-control-allow-origin: * | ||
access-control-expose-headers: Authorization, Content-Length, Content-Type, Date, Server, Transfer-Encoding, X-GUploader-UploadID, X-Google-Trace, accept, elastic-api-version, kbn-name, kbn-version, origin | ||
server: UploadServer | ||
date: Tue, 21 Nov 2023 12:16:01 GMT | ||
expires: Tue, 21 Nov 2023 13:16:01 GMT | ||
cache-control: public, max-age=3600,no-transform | ||
age: 29 | ||
last-modified: Mon, 17 Jul 2023 11:28:45 GMT | ||
etag: "f0a288c03eb06ca6b76185d39e715c67" | ||
content-type: application/json | ||
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 | ||
X-Firefox-Spdy: h2 | ||
---------------------------------- | ||
++++ | ||
</div> | ||
</div> | ||
++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
|
||
++++ | ||
<div class="tabs" data-tab-group="file-json-tab-group-name"> | ||
<div role="tablist" aria-label="Request and response to the File Service for a JSON Asset"> | ||
<button role="tab" | ||
aria-selected="true" | ||
aria-controls="file-json-tab-group-curl" | ||
id="file-json-group-curl" | ||
> | ||
Curl example | ||
</button> | ||
<button role="tab" | ||
aria-selected="false" | ||
aria-controls="file-json-tab-group-request" | ||
id="file-json-group-request" | ||
tabindex="-1"> | ||
Request | ||
</button> | ||
<button role="tab" | ||
aria-selected="false" | ||
aria-controls="file-json-tab-group-response" | ||
id="file-json-group-response" | ||
tabindex="-2"> | ||
Response | ||
</button> | ||
</div> | ||
<div tabindex="0" | ||
role="tabpanel" | ||
id="file-json-tab-group-curl" | ||
aria-labelledby="file-json-group-curl"> | ||
++++ | ||
[%collapsible] | ||
==== | ||
[source,bash,subs="attributes"] | ||
---------------------------------- | ||
curl -I 'https://vector.maps.elastic.co/v{minor-version}/manifest?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version={version}' \ | ||
-H 'User-Agent: curl/7.81.0' \ | ||
-H 'Accept: */*' \ | ||
-H 'Accept-Encoding: gzip, deflate, br' | ||
---------------------------------- | ||
|
||
Server response | ||
|
||
[source,regex] | ||
---------------------------------- | ||
HTTP/2 200 | ||
x-guploader-uploadid: ABPtcPp_BvMdBDO5jVlutETVHmvpOachwjilw4AkIKwMrOQJ4exR9Eln4g0LkW3V_LLSEpvjYLtUtFmO0Uwr61XXUhoP_A | ||
x-goog-generation: 1689593295246576 | ||
x-goog-metageneration: 1 | ||
x-goog-stored-content-encoding: gzip | ||
x-goog-stored-content-length: 108029 | ||
content-encoding: gzip | ||
x-goog-hash: crc32c=T5gVpw== | ||
x-goog-hash: md5=6F8KWV8VTdx8FsN2iFehow== | ||
x-goog-storage-class: MULTI_REGIONAL | ||
accept-ranges: bytes | ||
content-length: 108029 | ||
access-control-allow-origin: * | ||
access-control-expose-headers: Authorization, Content-Length, Content-Type, Date, Server, Transfer-Encoding, X-GUploader-UploadID, X-Google-Trace, accept, elastic-api-version, kbn-name, kbn-version, origin | ||
server: UploadServer | ||
date: Tue, 21 Nov 2023 14:25:07 GMT | ||
expires: Tue, 21 Nov 2023 15:25:07 GMT | ||
cache-control: public, max-age=3600,no-transform | ||
age: 2170 | ||
last-modified: Mon, 17 Jul 2023 11:28:15 GMT | ||
etag: "e85f0a595f154ddc7c16c3768857a1a3" | ||
content-type: application/json | ||
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 | ||
---------------------------------- | ||
==== | ||
++++ | ||
</div> | ||
<div tabindex="1" | ||
role="tabpanel" | ||
id="file-json-tab-group-request" | ||
aria-labelledby="file-json-group-request" | ||
hidden=""> | ||
++++ | ||
[source,regex,subs="attributes"] | ||
---------------------------------- | ||
Host: vector.maps.elastic.co | ||
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0 | ||
Accept: */* | ||
Accept-Language: en-US,en;q=0.5 | ||
Accept-Encoding: gzip, deflate, br | ||
Referer: {ems-headers-url}/app/maps/map | ||
Origin: {ems-headers-url} | ||
Connection: keep-alive | ||
Sec-Fetch-Dest: empty | ||
Sec-Fetch-Mode: cors | ||
Sec-Fetch-Site: cross-site | ||
Pragma: no-cache | ||
Cache-Control: no-cache | ||
---------------------------------- | ||
++++ | ||
</div> | ||
<div tabindex="2" | ||
role="tabpanel" | ||
id="file-json-tab-group-response" | ||
aria-labelledby="file-json-group-response" | ||
hidden=""> | ||
++++ | ||
[source,regex] | ||
---------------------------------- | ||
x-guploader-uploadid: ABPtcPoUFrCmjBeebnfRxSZp44ZHsZ-_iQg7794RU1Z7Lb2cNNxXsMRkIDa5s7VBEfyehvo-_9rcm1A3HfYW8geguUxKrw | ||
x-goog-generation: 1689593295246576 | ||
x-goog-metageneration: 1 | ||
x-goog-stored-content-encoding: gzip | ||
x-goog-stored-content-length: 108029 | ||
content-encoding: gzip | ||
x-goog-hash: crc32c=T5gVpw== | ||
x-goog-hash: md5=6F8KWV8VTdx8FsN2iFehow== | ||
x-goog-storage-class: MULTI_REGIONAL | ||
accept-ranges: bytes | ||
content-length: 108029 | ||
access-control-allow-origin: * | ||
access-control-expose-headers: Authorization, Content-Length, Content-Type, Date, Server, Transfer-Encoding, X-GUploader-UploadID, X-Google-Trace, accept, elastic-api-version, kbn-name, kbn-version, origin | ||
server: UploadServer | ||
date: Tue, 21 Nov 2023 11:24:45 GMT | ||
expires: Tue, 21 Nov 2023 12:24:45 GMT | ||
cache-control: public, max-age=3600,no-transform | ||
age: 3101 | ||
last-modified: Mon, 17 Jul 2023 11:28:15 GMT | ||
etag: "e85f0a595f154ddc7c16c3768857a1a3" | ||
content-type: application/json | ||
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 | ||
X-Firefox-Spdy: h2 | ||
---------------------------------- | ||
++++ | ||
</div> | ||
</div> | ||
++++ |
Oops, something went wrong.