I use this to test APIs that consume PipeReaders to ensure they are agnostic with regards to where any buffer boundaries ends up being, so I run tests with a few different strategies ranging from "give all data on the first read" to "give a single byte more for every call to read"....
Net.Http; public class PipeReaderContent : HttpContent { public PipeReader Reader { get; } // All HttpContent methods implemented over PipeReader? } API Usage var r = await httpClient.GetAsync("https://example.com/bigfile", HttpCompletionOption.ResponseHeadersRead); if (r.Content is Pipe...