kiota
kiota copied to clipboard
CompressionHandler enhancements
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
andbrotli
) - 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
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.