Need to integrate zstandard compression algorithm to compress/decompress API request/response

Hardik Bhadania 0 Reputation points
2023-09-01T09:01:58.6166667+00:00

I need to integrate zstandard compression algorithm to compress/decompress API request/response.

I've started doing this by CustomCompressionProvider class which implements ICompressionProvider interface.

While implementing CreateStream method, I'm confused from where we can get actual API response data which I need to compress. Also didn't get what is the use of argument of this CreateStream method.

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | ASP.NET API
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.