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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
338 questions
{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.