summaryrefslogtreecommitdiff
path: root/platform/node/README.md
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-09-02 16:53:41 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-09-04 10:52:14 -0700
commit15a66b8989645b702d207d96f6693ea3ddd93bdc (patch)
tree8f60f1e62f54a8a3afce280ddc48a1a3bef5da70 /platform/node/README.md
parente49ef97a500d7c0afa5bf55d311dc5239ccddd2a (diff)
downloadqtlocation-mapboxgl-15a66b8989645b702d207d96f6693ea3ddd93bdc.tar.gz
Consolidate test-suite rendering harnesses (#2236)
Diffstat (limited to 'platform/node/README.md')
-rw-r--r--platform/node/README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/node/README.md b/platform/node/README.md
index 870151fd25..72a08e8539 100644
--- a/platform/node/README.md
+++ b/platform/node/README.md
@@ -92,6 +92,8 @@ The `kind` is an enum and defined in [`mbgl.Resource`](https://github.com/mapbox
It has no significance for anything but serves as a hint to your implemention as to what sort of resource to expect. E.g., your implementation could choose caching strategies based on the expected file type.
+THe `request` implementation should pass uncompressed data to `req.respond`. If you are downloading assets from a source that applies gzip transport encoding, the implementation must decompress the results before passing them on.
+
A sample implementation that reads files from disk would look like the following:
```js