Add System.Net.Http .net 4.5 beta members
authorMarek Safar <marek.safar@gmail.com>
Thu, 29 Mar 2012 13:59:18 +0000 (14:59 +0100)
committerMarek Safar <marek.safar@gmail.com>
Thu, 29 Mar 2012 14:02:38 +0000 (15:02 +0100)
mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs
mcs/class/System.Net.Http/System.Net.Http.dll.sources
mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs

index 49efa5076099a86c374e613839332a696211a49c..0b66f3444c483fd623aab4005747cb32d4947d8a 100644 (file)
@@ -51,6 +51,15 @@ namespace System.Net.Http.Headers
                                return GetValues<string> ("Content-Encoding");
                        }
                }
+               
+               public ContentDispositionHeaderValue ContentDisposition {
+                       get {
+                               return GetValue<ContentDispositionHeaderValue> ("Content-Disposition");
+                       }
+                       set {
+                               AddOrRemove ("Content-Disposition", value);
+                       }
+               }
 
                public ICollection<string> ContentLanguage {
                        get {
index f88d6760d53e8e9205e34c73bd63b6c5436cc5be..bbbde1db749a9e9ce00cad4ba654cece1239bc84 100644 (file)
@@ -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
index 89979a544b6c4aabdeae81aaed0150019f2e4b32..8a66f60421f88acd49d5794f1fb610f8b64f7de0 100644 (file)
@@ -90,6 +90,12 @@ namespace System.Net.Http
                        await SerializeToStreamAsync (buffer, null).ConfigureAwait (false);
                        buffer.Seek (0, SeekOrigin.Begin);
                }
+               
+               public Task<Stream> ReadAsStreamAsync ()
+               {
+                       // TODO:
+                       throw new NotImplementedException ();
+               }
 
                public async Task<byte[]> ReadAsByteArrayAsync ()
                {