Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PlatformHelper.Legacy.cs « System.Net.Http « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 668b88bd5c8b075381ceeb4d27f53d7e402ae409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
		}
	}
}