File: CustomDecompressionProvider.cs
Web Access
Project: src\src\Middleware\RequestDecompression\sample\RequestDecompressionSample.csproj (RequestDecompressionSample)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.RequestDecompression;
 
namespace RequestDecompressionSample;
 
public class CustomDecompressionProvider : IDecompressionProvider
{
    public Stream GetDecompressionStream(Stream stream)
    {
        // Create a custom decompression stream wrapper here.
        return stream;
    }
}