kiota icon indicating copy to clipboard operation
kiota copied to clipboard

CompressionHandler enhancements

Open andrueastman opened this issue 3 years ago • 1 comments

The current compression handler for Microsoft graph is outlined in the spec at the link below

https://github.com/microsoftgraph/msgraph-sdk-design/blob/master/middleware/CompressionHandler.md

This has two possible issues/notes

  • It outlines supports for gzip but other compression methods may be used by other APIs( e.g. deflate and brotli)
  • It outlines that AGS does not support compressed content being sent to it when ideally we would want to send compressed content and also expect back compressed content. AB#11068

andrueastman avatar Sep 08 '21 13:09 andrueastman

Adding to this, it'd be nice if the next version of this middleware could support:

  • setting which compression alg to use for request payload (and not doing any request compression if nothing is set)
  • setting which compression algs to send to the server (accept encoding), validating it belongs to a range that's actually supported by the middleware, and decompressing things depending on the response header.

baywet avatar Sep 08 '21 13:09 baywet