New tests.
[mono.git] / mcs / class / System.Net / System.Net / HttpWebRequest_2_1.cs
index 13fd6afd549c3182502375cade76597f78031655..e2fccc637c47b6d8beebe2548834221c022baadf 100644 (file)
@@ -5,7 +5,7 @@
 //     Atsushi Enomoto  <atsushi@ximian.com>
 //  Jb Evain  <jbevain@novell.com>
 //
-// Copyright (C) 2007, 2009 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2007, 2009-2010 Novell, Inc (http://www.novell.com)
 //
 
 //
@@ -38,8 +38,9 @@ namespace System.Net {
        // note: the NotImplementedException are needed to match MS implementation
 
        // note: MS documents a lot of thing for this type but, in truth, all happens
-       // in a type that derive from HttpWebRequest. In Moonlight case this is
-       // BrowserHttpWebRequest and is located in System.Windows.Browser.dll
+       // in a type that derive from HttpWebRequest. In Moonlight case this is either
+       // * BrowserHttpWebRequest (browser stack) located in System.Windows.Browser.dll; or
+       // * System.Net.Browser.ClientHttpWebRequest (client stack) located in System.Windows.dll
 
        public abstract class HttpWebRequest : WebRequest {
 
@@ -60,6 +61,12 @@ namespace System.Net {
                        set { throw NotImplemented (); }
                }
 
+               // new in SL4 RC
+               public virtual bool AllowWriteStreamBuffering {
+                       get { throw NotImplemented (); }
+                       set { throw NotImplemented (); }
+               }
+
                public override string ContentType {
                        get { return Headers [HttpRequestHeader.ContentType]; }
                        // this header cannot be set directly inside the collection (hence the helper)
@@ -92,9 +99,9 @@ namespace System.Net {
                        }
                }
 
-               public CookieContainer CookieContainer {
-                       get;
-                       set;
+               public virtual CookieContainer CookieContainer {
+                       get { throw NotImplemented (); }
+                       set { throw NotImplemented (); }
                }
 
                public override string Method {
@@ -106,6 +113,10 @@ namespace System.Net {
                        get { throw NotImplemented (); }
                }
 
+               // new in SL4 RC
+               public virtual bool SupportsCookieContainer {
+                       get { return false; }
+               }
 
                public override void Abort ()
                {