[Backport 7.x] Support mapbox content type (#1508)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2021-08-02 11:20:11 +02:00
committed by GitHub
parent a287c71147
commit 563b7746cd
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