New tests.
[mono.git] / mcs / class / System.Net / System.Net / HttpWebRequest_2_1.cs
index 41b81954321de4cef247321ee21c170df2980720..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)
@@ -85,13 +92,18 @@ namespace System.Net {
                                        WebHeaderCollection.ValidateHeader (header);
                                }
                                // ... before making those values our own
-                               headers.headers.Clear ();
+                               Headers.headers.Clear ();
                                foreach (string header in keys) {
                                        headers [header] = value [header];
                                }
                        }
                }
 
+               public virtual CookieContainer CookieContainer {
+                       get { throw NotImplemented (); }
+                       set { throw NotImplemented (); }
+               }
+
                public override string Method {
                        get { throw NotImplemented (); }
                        set { throw NotImplemented (); }
@@ -101,6 +113,10 @@ namespace System.Net {
                        get { throw NotImplemented (); }
                }
 
+               // new in SL4 RC
+               public virtual bool SupportsCookieContainer {
+                       get { return false; }
+               }
 
                public override void Abort ()
                {