[bcl] Add missing APIs for netstandard parity and expose a few APIs on mobile
[mono.git] / mcs / class / System / System.Net / HttpWebRequest.cs
index 9f94783258dfa6a4067bebd666584507334cfd6c..6a0aeb866cce320ace2968098e4498c8839bdebf 100644 (file)
@@ -145,6 +145,14 @@ namespace System.Net
 #endif
                }
 
+               [Obsolete ("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
+#if !BOOTSTRAP_BASIC
+               [System.ComponentModel.EditorBrowsable (System.ComponentModel.EditorBrowsableState.Never)]
+#endif
+               public HttpWebRequest ()
+               {
+               }
+
 #if MOBILE
                public
 #else
@@ -226,12 +234,12 @@ namespace System.Net
                        internal set { actualUri = value; } // Used by Ftp+proxy
                }
                
-               public bool AllowAutoRedirect {
+               public virtual bool AllowAutoRedirect {
                        get { return allowAutoRedirect; }
                        set { this.allowAutoRedirect = value; }
                }
                
-               public bool AllowWriteStreamBuffering {
+               public virtual bool AllowWriteStreamBuffering {
                        get { return allowBuffering; }
                        set { allowBuffering = value; }
                }
@@ -918,6 +926,12 @@ namespace System.Net
                        return EndGetRequestStream (asyncResult);
                }
 
+               [MonoTODO]
+               public Stream GetRequestStream (out TransportContext context)
+               {
+                       throw new NotImplementedException ();
+               }
+
                bool CheckIfForceWrite (SimpleAsyncResult result)
                {
                        if (writeStream == null || writeStream.RequestWritten || !InternalAllowBuffering)