A custom HttpContent that wraps a rented byte array from an ArrayPool, writes only the valid byte range to outgoing streams, and returns the buffer to the pool when disposed to reduce GC allocations.
csharp dotnet object array byte pooled arraypool httpcontent httpcontents pooledbytearrays pooledbytearraycontent
-
Updated
Jan 15, 2026 - C#