Gzip compression
Request and responses negotiated with the HERE Batch API v7 can be compressed in gzip format. You are strongly encouraged to use this option to reduce the file size and thus significantly improve performance and responsiveness in your application.
Requests
You can send a gzip-compressed input file to the service by setting the Content-Encoding header to gzip.
Mismatched content and Content-Encoding will result in an error.
Responses
You can request gzip-compressed responses by setting the standard Accept-Encoding header to gzip.
When the response is gzip compressed, the value of the Content-Encoding response header is set to gzip.
Note
Please note that the
Content-EncodingandAccept-Encodingheader do not affect theContent-Typeheader. This stays the same whether the body is gzip encoded or not.
Updated this month