From: Marek Safar Date: Thu, 29 Mar 2012 13:59:18 +0000 (+0100) Subject: Add System.Net.Http .net 4.5 beta members X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=a5af971dddc99a4ff4702901fd4f29ef7c989b96;p=mono.git Add System.Net.Http .net 4.5 beta members --- diff --git a/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs b/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs index 49efa507609..0b66f3444c4 100644 --- a/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs +++ b/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs @@ -51,6 +51,15 @@ namespace System.Net.Http.Headers return GetValues ("Content-Encoding"); } } + + public ContentDispositionHeaderValue ContentDisposition { + get { + return GetValue ("Content-Disposition"); + } + set { + AddOrRemove ("Content-Disposition", value); + } + } public ICollection ContentLanguage { get { diff --git a/mcs/class/System.Net.Http/System.Net.Http.dll.sources b/mcs/class/System.Net.Http/System.Net.Http.dll.sources index f88d6760d53..bbbde1db749 100644 --- a/mcs/class/System.Net.Http/System.Net.Http.dll.sources +++ b/mcs/class/System.Net.Http/System.Net.Http.dll.sources @@ -16,6 +16,7 @@ System.Net.Http/StringContent.cs System.Net.Http.Headers/AuthenticationHeaderValue.cs System.Net.Http.Headers/CacheControlHeaderValue.cs System.Net.Http.Headers/CollectionExtensions.cs +System.Net.Http.Headers/ContentDispositionHeaderValue.cs System.Net.Http.Headers/ContentRangeHeaderValue.cs System.Net.Http.Headers/EntityTagHeaderValue.cs System.Net.Http.Headers/HashCodeCalculator.cs diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs index 89979a544b6..8a66f60421f 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs @@ -90,6 +90,12 @@ namespace System.Net.Http await SerializeToStreamAsync (buffer, null).ConfigureAwait (false); buffer.Seek (0, SeekOrigin.Begin); } + + public Task ReadAsStreamAsync () + { + // TODO: + throw new NotImplementedException (); + } public async Task ReadAsByteArrayAsync () {