linux-packaging-mono/mcs/class/System.Net.Http/PlatformHelper.Legacy.cs
Xamarin Public Jenkins (auto-signing) ef583813eb Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
2019-07-26 19:53:28 +00:00

26 lines
652 B
C#

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);
}
}
}