Compression in batch operations - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

You can use compression to compress the body of an OData request when sending or receiving a batch POST request from a server. The URL of the batch request must end with $batch. For example, . . /api/v2/$batch.

The Content-Encoding and the Accept-Encoding header on the request both support the Gzip or Deflate options, but only the Accept-Encoding header accepts multiple values. For example:

  • If you want to send a compressed data request to a server then the request contains the header: Content-Encoding: gzip.

  • If you want to receive a compressed data response from a server then the request contains the header: Accept-Encoding: gzip, deflate.

    When multiple values are selected, only the first supported value is used. In this case, Gzip is the first supported value.