linux-packaging-mono/mcs/class/System.Net.Http/PlatformHelper.Legacy.cs

26 lines
652 B
C#
Raw Normal View History

using System.IO;
using System.Threading;
using System.Collections.Generic;
using System.Net.Http.Headers;
namespace System.Net.Http
{
static class PlatformHelper
{
internal static bool IsContentHeader (string name)
{
return HttpHeaders.GetKnownHeaderKind (name) == Headers.HttpHeaderKind.Content;
}
internal static string GetSingleHeaderString (string name, IEnumerable<string> values)
{
return HttpRequestHeaders.GetSingleHeaderString (name, values);
}
internal static StreamContent CreateStreamContent (Stream stream, CancellationToken cancellationToken)
{
return new StreamContent (stream, cancellationToken);
}
}
}