ef583813eb
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
26 lines
652 B
C#
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);
|
|
}
|
|
}
|
|
}
|