Support mapbox content type (#1500)

This commit is contained in:
Tomas Della Vedova
2021-08-02 11:19:28 +02:00
committed by GitHub
parent 728868f3ea
commit b0a7a21f72
4 changed files with 91 additions and 7 deletions

View File

@ -32,3 +32,10 @@ class MyTransport extends Transport {
}
----
==== Supported content types
- `application/json`, in this case the transport will return a plain JavaScript object
- `text/plain`, in this case the transport will return a plain string
- `application/vnd.mapbox-vector-tile`, in this case the transport will return a Buffer
- `application/vnd.elasticsearch+json`, in this case the transport will return a plain JavaScript object