Brotli.NET 2.0.4.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Brotli.NET --version 2.0.4.2                
NuGet\Install-Package Brotli.NET -Version 2.0.4.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Brotli.NET" Version="2.0.4.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Brotli.NET --version 2.0.4.2                
#r "nuget: Brotli.NET, 2.0.4.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Brotli.NET as a Cake Addin
#addin nuget:?package=Brotli.NET&version=2.0.4.2

// Install Brotli.NET as a Cake Tool
#tool nuget:?package=Brotli.NET&version=2.0.4.2                

Supported on dotnet standard2(Windows/Linux/OSX), provide similar interface to Google offical API.Quality and window control is supported.
The library use the native runtime and its performance should be better than System.IO.Compress.BrotliStream.
To support dynamic compress in web applications,add the code like this in the Global.asax.cs:
       protected void Application_PostAcquireRequestState(object sender, EventArgs e)
       {
                          var app = Context.ApplicationInstance;
               String acceptEncodings = app.Request.Headers.Get("Accept-Encoding");

               if (!String.IsNullOrEmpty(acceptEncodings))
               {
                   System.IO.Stream baseStream = app.Response.Filter;
                   acceptEncodings = acceptEncodings.ToLower();

                   if (acceptEncodings.Contains("br") || acceptEncodings.Contains("brotli"))
                   {
                       app.Response.Filter = new BrotliStream(baseStream, System.IO.Compression.CompressionMode.Compress);
                       app.Response.AppendHeader("Content-Encoding", "br");
                   }
                   //other encodings
               }
          }

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (18)

Showing the top 5 NuGet packages that depend on Brotli.NET:

Package Downloads
Dynamicweb.Controls

CMS Content Management System (WCMS) - Server controls.

Umbrella.Legacy.WebUtilities

This package contains a range of utility classes to aid web application development using the legacy ASP.NET stack.

TomLonghurst.AsyncRedisClient

An Asynchronous Redis Client for .NET

jfYu.Core.jfYuRequest

HttpRequest

StreamReadWithCompressing

Stream compress/decompress on the fly with modules (GZip, Deflate)

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on Brotli.NET:

Repository Stars
leiurayer/downkyi
哔哩下载姬downkyi,哔哩哔哩网站视频下载工具,支持批量下载,支持8K、HDR、杜比视界,提供工具箱(音视频提取、去水印等)。
copyliu/bililive_dm
B站弹幕姬 - B站直播彈幕工具
mjebrahimi/EasyCompressor
⚡An Easy-to-Use and Optimized compression library for .NET that unified several compression algorithms including LZ4, Snappy, Zstd, LZMA, Brotli, GZip, ZLib, and Deflate. This library aids in Improving Performance by Reducing Memory Usage and Bandwidth Usage. Along with a greate Performance Benchmark between different compression algorithms.
projectkudu/ARMClient
A simple command line tool to invoke the Azure Resource Manager API
jamesbrindle/YTMusicUploader
Automatically upload your music library and playlists to YouTube Music .Net Application. Upload songs to YouTube Music and bulk delete music and playlists from YouTube Music. C#.
Version Downloads Last updated
2.1.1 711,056 5/23/2021
2.0.4.2 734,017 3/4/2019
2.0.4 1,504 3/3/2019
2.0.3.2 1,304 3/3/2019
2.0.3.1 1,285 3/2/2019
2.0.3 1,359 3/2/2019
2.0.2 2,319 2/22/2019
2.0.0 1,556 2/21/2019
1.0.19 337,105 7/16/2017
1.0.17 12,209 3/23/2017
1.0.12 7,723 3/15/2017
1.0.11 8,640 12/30/2016
1.0.10 7,639 12/30/2016
1.0.9 7,340 12/30/2016
1.0.8 9,149 10/25/2016
1.0.7 7,289 10/25/2016
1.0.6 7,729 10/25/2016
1.0.5 7,849 10/24/2016
1.0.4 8,107 10/24/2016
1.0.3 7,469 10/24/2016

Now supporting .NET 3.5 and above again.