Compression

The compression algorithms brotli and gzip are supported.
If you are performing the API requests using SDK or MQL, compression will be enabled by default.
Otherwise, ensure to specify what compression you want to use using header.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
const mql = require('@microlink/mql')

const { status, data } = await mql('https://github.com')

mql.render(data)
You can check what compression algorithm has been used after the HTTP negotiation seeing content-encoding response header.