using System.Net.Http; namespace Refit { #if !NET6_0_OR_GREATER static class HttpContentExtensions { #pragma warning disable IDE0079 // Remove unnecessary suppression #pragma warning disable IDE0060 // Remove unused parameter public static Task ReadAsStreamAsync( this HttpContent httpContent, CancellationToken cancellationToken ) { return httpContent.ReadAsStreamAsync(); } public static Task ReadAsStringAsync( this HttpContent httpContent, CancellationToken cancellationToken ) { return httpContent.ReadAsStringAsync(); } #pragma warning restore IDE0060 // Remove unused parameter #pragma warning restore IDE0079 // Remove unnecessary suppression } #endif }