move the System.Net 2.1 specific from System to System.Net
authorJb Evain <jbevain@gmail.com>
Sun, 13 Apr 2008 14:37:51 +0000 (14:37 -0000)
committerJb Evain <jbevain@gmail.com>
Sun, 13 Apr 2008 14:37:51 +0000 (14:37 -0000)
svn path=/trunk/mcs/; revision=100566

13 files changed:
1  2 
mcs/class/System.Net/System.Net.dll.sources
mcs/class/System.Net/System.Net/ChangeLog
mcs/class/System.Net/System.Net/HttpWebRequest_2_1.cs
mcs/class/System.Net/System.Net/HttpWebResponse_2_1.cs
mcs/class/System.Net/System.Net/WebHeaderCollection_2_1.cs
mcs/class/System.Net/System.Net/WebRequest_2_1.cs
mcs/class/System.Net/System.Net/WebResponse_2_1.cs
mcs/class/System/System.Net/ChangeLog
mcs/class/System/System.Net/HttpWebRequest_2_1.cs
mcs/class/System/System.Net/HttpWebResponse_2_1.cs
mcs/class/System/System.Net/WebHeaderCollection_2_1.cs
mcs/class/System/System.Net/WebRequest_2_1.cs
mcs/class/System/System.Net/WebResponse_2_1.cs

index 4df7bf8e4111307ae308dac173bef77ca893913f,4df7bf8e4111307ae308dac173bef77ca893913f..2264f7e584b7b4073d4a6867f0a5be7d3c66d39e
@@@ -2,6 -2,6 +2,11 @@@
  ../../build/common/Locale.cs
  ../../build/common/MonoTODOAttribute.cs
  DummySystemNet.cs
++System.Net/HttpWebRequest_2_1.cs
++System.Net/HttpWebResponse_2_1.cs
++System.Net/WebHeaderCollection_2_1.cs
++System.Net/WebRequest_2_1.cs
++System.Net/WebResponse_2_1.cs
  ../System/Assembly/AssemblyInfo.cs
  ../System/System.Net/AuthenticationSchemes.cs
  ../System/System.Net/AuthenticationSchemeSelector.cs
@@@ -39,8 -39,8 +44,6 @@@
  ../System/System.Net/HttpStreamAsyncResult.cs
  ../System/System.Net/HttpUtility.cs
  ../System/System.Net/HttpVersion.cs
--../System/System.Net/HttpWebRequest_2_1.cs
--../System/System.Net/HttpWebResponse_2_1.cs
  ../System/System.Net/IAuthenticationModule.cs
  ../System/System.Net/ICredentialLookup.cs
  ../System/System.Net/ICredentialPolicy.cs
  ../System/System.Net/WebAsyncResult.cs
  ../System/System.Net/WebException.cs
  ../System/System.Net/WebExceptionStatus.cs
--../System/System.Net/WebHeaderCollection_2_1.cs
--../System/System.Net/WebRequest_2_1.cs
  ../System/System.Net/WebRequestMethods.cs
--../System/System.Net/WebResponse_2_1.cs
  ../System/System.Net/UploadDataCompletedEventArgs.cs
  ../System/System.Net/UploadFileCompletedEventArgs.cs
  ../System/System.Net/UploadFileCompletedEventHandler.cs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ca24132a9c2cb2d6454300bca7d0cb2f6d5f84b4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++2008-04-13  Jb Evain  <jbevain@novell.com>
++
++      * *_2_1.cs: move the specific 2.1 System.Net code to the
++      assembly System.Net.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..973b557f24390048fca034bd0aed6f3dfe0d0ec8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,44 @@@
++//
++// System.Net.HttpWebRequest (for 2.1 profile)
++//
++// Authors:
++//    Atsushi Enomoto  <atsushi@ximian.com>
++//  Jb Evain  <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// Permission is hereby granted, free of charge, to any person obtaining
++// a copy of this software and associated documentation files (the
++// "Software"), to deal in the Software without restriction, including
++// without limitation the rights to use, copy, modify, merge, publish,
++// distribute, sublicense, and/or sell copies of the Software, and to
++// permit persons to whom the Software is furnished to do so, subject to
++// the following conditions:
++// 
++// The above copyright notice and this permission notice shall be
++// included in all copies or substantial portions of the Software.
++// 
++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++//
++
++#if NET_2_1
++
++using System;
++
++namespace System.Net { 
++
++      public abstract class HttpWebRequest : WebRequest {
++
++              public abstract bool HaveResponse { get; }
++      }
++}
++
++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..aa59d5ce4fc25682f1d35e95aff3d19c0d9e15a7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,46 @@@
++//
++// System.Net.HttpWebResponse (for 2.1 profile)
++//
++// Authors:
++//    Atsushi Enomoto  <atsushi@ximian.com>
++//  Jb Evain  <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// Permission is hereby granted, free of charge, to any person obtaining
++// a copy of this software and associated documentation files (the
++// "Software"), to deal in the Software without restriction, including
++// without limitation the rights to use, copy, modify, merge, publish,
++// distribute, sublicense, and/or sell copies of the Software, and to
++// permit persons to whom the Software is furnished to do so, subject to
++// the following conditions:
++// 
++// The above copyright notice and this permission notice shall be
++// included in all copies or substantial portions of the Software.
++// 
++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++//
++
++#if NET_2_1
++
++using System;
++
++namespace System.Net {
++
++      public abstract class HttpWebResponse : WebResponse {
++
++              public abstract string Method { get; }
++              public abstract HttpStatusCode StatusCode { get; }
++              public abstract string StatusDescription { get; }
++      }
++}
++
++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0845801004264f5c171bd88bad4584f3e56c123c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,157 @@@
++//
++// System.Net.WebHeaderCollection (for 2.1 profile)
++//
++// Authors:
++//    Jb Evain  <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// Permission is hereby granted, free of charge, to any person obtaining
++// a copy of this software and associated documentation files (the
++// "Software"), to deal in the Software without restriction, including
++// without limitation the rights to use, copy, modify, merge, publish,
++// distribute, sublicense, and/or sell copies of the Software, and to
++// permit persons to whom the Software is furnished to do so, subject to
++// the following conditions:
++//
++// The above copyright notice and this permission notice shall be
++// included in all copies or substantial portions of the Software.
++//
++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++//
++
++#if NET_2_1
++
++using System;
++using System.Collections.Generic;
++
++namespace System.Net {
++
++      public class WebHeaderCollection {
++
++              Dictionary<string, string> headers = new Dictionary<string, string> ();
++
++              public WebHeaderCollection ()
++              {
++              }
++
++              public int Count {
++                      get { return headers.Count; }
++              }
++
++              public ICollection<string> Headers {
++                      get { return new List<string> (headers.Keys); }
++              }
++
++              public string this [string header] {
++                      get {
++                              string value;
++                              if (headers.TryGetValue (header, out value))
++                                      return value;
++
++                              return string.Empty;
++                      }
++                      set { headers [header] = value; }
++              }
++
++              public string this [HttpRequestHeader header] {
++                      get { return this [HttpRequestHeaderToString (header)]; }
++                      set { this [HttpRequestHeaderToString (header)] = value; }
++              }
++
++              static string HttpResponseHeaderToString (HttpResponseHeader header)
++              {
++                      switch (header) {
++                      case HttpResponseHeader.CacheControl:           return "cache-control";
++                      case HttpResponseHeader.Connection:                     return "connection";
++                      case HttpResponseHeader.Date:                           return "date";
++                      case HttpResponseHeader.KeepAlive:                      return "keep-alive";
++                      case HttpResponseHeader.Pragma:                         return "pragma";
++                      case HttpResponseHeader.Trailer:                        return "trailer";
++                      case HttpResponseHeader.TransferEncoding:       return "transfer-encoding";
++                      case HttpResponseHeader.Upgrade:                        return "upgrade";
++                      case HttpResponseHeader.Via:                            return "via";
++                      case HttpResponseHeader.Warning:                        return "warning";
++                      case HttpResponseHeader.Allow:                          return "allow";
++                      case HttpResponseHeader.ContentLength:          return "content-length";
++                      case HttpResponseHeader.ContentType:            return "content-type";
++                      case HttpResponseHeader.ContentEncoding:        return "content-encoding";
++                      case HttpResponseHeader.ContentLanguage:        return "content-language";
++                      case HttpResponseHeader.ContentLocation:        return "content-location";
++                      case HttpResponseHeader.ContentMd5:                     return "content-md5";
++                      case HttpResponseHeader.ContentRange:           return "content-range";
++                      case HttpResponseHeader.Expires:                        return "expires";
++                      case HttpResponseHeader.LastModified:           return "last-modified";
++                      case HttpResponseHeader.AcceptRanges:           return "accept-ranges";
++                      case HttpResponseHeader.Age:                            return "age";
++                      case HttpResponseHeader.ETag:                           return "etag";
++                      case HttpResponseHeader.Location:                       return "location";
++                      case HttpResponseHeader.ProxyAuthenticate:      return "proxy-authenticate";
++                      case HttpResponseHeader.RetryAfter:                     return "retry-after";
++                      case HttpResponseHeader.Server:                         return "server";
++                      case HttpResponseHeader.SetCookie:                      return "set-cookie";
++                      case HttpResponseHeader.Vary:                           return "vary";
++                      case HttpResponseHeader.WwwAuthenticate:        return "www-authenticate";
++                      default:                                                                        throw new ArgumentException ();
++                      }
++              }
++
++              static string HttpRequestHeaderToString (HttpRequestHeader header)
++              {
++                      switch (header) {
++                      case HttpRequestHeader.CacheControl:            return "cache-control";
++                      case HttpRequestHeader.Connection:                      return "connection";
++                      case HttpRequestHeader.Date:                            return "date";
++                      case HttpRequestHeader.KeepAlive:                       return "keep-alive";
++                      case HttpRequestHeader.Pragma:                          return "pragma";
++                      case HttpRequestHeader.Trailer:                         return "trailer";
++                      case HttpRequestHeader.TransferEncoding:        return "transfer-encoding";
++                      case HttpRequestHeader.Upgrade:                         return "upgrade";
++                      case HttpRequestHeader.Via:                                     return "via";
++                      case HttpRequestHeader.Warning:                         return "warning";
++                      case HttpRequestHeader.Allow:                           return "allow";
++                      case HttpRequestHeader.ContentLength:           return "content-length";
++                      case HttpRequestHeader.ContentType:                     return "content-type";
++                      case HttpRequestHeader.ContentEncoding:         return "content-encoding";
++                      case HttpRequestHeader.ContentLanguage:         return "content-language";
++                      case HttpRequestHeader.ContentLocation:         return "content-location";
++                      case HttpRequestHeader.ContentMd5:                      return "content-md5";
++                      case HttpRequestHeader.ContentRange:            return "content-range";
++                      case HttpRequestHeader.Expires:                         return "expires";
++                      case HttpRequestHeader.LastModified:            return "last-modified";
++                      case HttpRequestHeader.Accept:                          return "accept";
++                      case HttpRequestHeader.AcceptCharset:           return "accept-charset";
++                      case HttpRequestHeader.AcceptEncoding:          return "accept-encoding";
++                      case HttpRequestHeader.AcceptLanguage:          return "accept-language";
++                      case HttpRequestHeader.Authorization:           return "authorization";
++                      case HttpRequestHeader.Cookie:                          return "cookie";
++                      case HttpRequestHeader.Expect:                          return "expect";
++                      case HttpRequestHeader.From:                            return "from";
++                      case HttpRequestHeader.Host:                            return "host";
++                      case HttpRequestHeader.IfMatch:                         return "if-match";
++                      case HttpRequestHeader.IfModifiedSince:         return "if-modified-since";
++                      case HttpRequestHeader.IfNoneMatch:                     return "if-none-match";
++                      case HttpRequestHeader.IfRange:                         return "if-range";
++                      case HttpRequestHeader.IfUnmodifiedSince:       return "if-unmodified-since";
++                      case HttpRequestHeader.MaxForwards:                     return "max-forwards";
++                      case HttpRequestHeader.ProxyAuthorization:      return "proxy-authorization";
++                      case HttpRequestHeader.Referer:                         return "referer";
++                      case HttpRequestHeader.Range:                           return "range";
++                      case HttpRequestHeader.Te:                                      return "te";
++                      case HttpRequestHeader.Translate:                       return "translate";
++                      case HttpRequestHeader.UserAgent:                       return "user-agent";
++                      default:                                                                        throw new ArgumentException ();
++                      }
++              }
++      }
++}
++
++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..856ff6bbe97999a64c095671c889fec181cd04bc
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,89 @@@
++//
++// System.Net.WebRequest (for 2.1 profile)
++//
++// Authors:
++//    Jb Evain  <jbevain@novell.com>
++//
++// (c) 2008 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// Permission is hereby granted, free of charge, to any person obtaining
++// a copy of this software and associated documentation files (the
++// "Software"), to deal in the Software without restriction, including
++// without limitation the rights to use, copy, modify, merge, publish,
++// distribute, sublicense, and/or sell copies of the Software, and to
++// permit persons to whom the Software is furnished to do so, subject to
++// the following conditions:
++//
++// The above copyright notice and this permission notice shall be
++// included in all copies or substantial portions of the Software.
++//
++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++//
++
++#if NET_2_1
++
++using System;
++using System.IO;
++
++namespace System.Net {
++
++      public abstract class WebRequest {
++
++              static Type browser_http_request;
++
++              public abstract string ContentType { get; set; }
++              public abstract WebHeaderCollection Headers { get; set; }
++              public abstract string Method { get; set; }
++              public abstract Uri RequestUri { get; }
++
++              protected WebRequest ()
++              {
++              }
++
++              public abstract void Abort();
++              public abstract IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state);
++              public abstract IAsyncResult BeginGetResponse (AsyncCallback callback, object state);
++              public abstract Stream EndGetRequestStream (IAsyncResult asyncResult);
++              public abstract WebResponse EndGetResponse (IAsyncResult asyncResult);
++
++              public static WebRequest Create (Uri uri)
++              {
++                      if (!uri.Scheme.StartsWith ("http"))
++                              throw new NotSupportedException (string.Format ("Scheme {0} not supported", uri.Scheme));
++
++                      return CreateBrowserHttpRequest (uri);
++              }
++
++              static WebRequest CreateBrowserHttpRequest (Uri uri)
++              {
++                      if (browser_http_request == null)
++                              browser_http_request = GetBrowserHttpFromMoonlight ();
++
++                      return (WebRequest) Activator.CreateInstance (browser_http_request, new object [] { uri });
++              }
++
++              static Type GetBrowserHttpFromMoonlight ()
++              {
++                      var type = Type.GetType ("System.Windows.Browser.Net.BrowserHttpWebRequest, Mono.Moonlight");
++                      if (type == null)
++                              throw new NotSupportedException ("Can not get BrowserHttpWebRequest");
++
++                      return type;
++              }
++
++              public static bool RegisterPrefix (string prefix, IWebRequestCreate creator)
++              {
++                      throw new NotSupportedException ();
++              }
++      }
++}
++
++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..fd590cb0553f115082b8eb3644728f388526c447
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,59 @@@
++//
++// System.Net.HttpWebResponse (for 2.1 profile)
++//
++// Authors:
++//    Jb Evain  <jbevain@novell.com>
++//
++// (c) 2007 Novell, Inc. (http://www.novell.com)
++//
++
++//
++// Permission is hereby granted, free of charge, to any person obtaining
++// a copy of this software and associated documentation files (the
++// "Software"), to deal in the Software without restriction, including
++// without limitation the rights to use, copy, modify, merge, publish,
++// distribute, sublicense, and/or sell copies of the Software, and to
++// permit persons to whom the Software is furnished to do so, subject to
++// the following conditions:
++//
++// The above copyright notice and this permission notice shall be
++// included in all copies or substantial portions of the Software.
++//
++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++//
++
++#if NET_2_1
++
++using System;
++using System.IO;
++
++namespace System.Net {
++
++      public abstract class WebResponse : IDisposable {
++
++              public abstract long ContentLength { get; }
++              public abstract string ContentType { get; }
++              public abstract Uri ResponseUri { get; }
++
++              protected WebResponse ()
++              {
++              }
++
++              public abstract void Close ();
++              public abstract void Dispose (bool disposing);
++              public abstract Stream GetResponseStream ();
++
++              void IDisposable.Dispose ()
++              {
++                      Dispose (true);
++              }
++      }
++}
++
++#endif
index 8ec2242b76bb23c09e0d430d3190b4e2bdc5d689,8ec2242b76bb23c09e0d430d3190b4e2bdc5d689..f1de52c9f2867d3f31e898556590839ebbae8f46
@@@ -1,3 -1,3 +1,8 @@@
++2008-04-13  Jb Evain  <jbevain@novell.com>
++
++      * *_2_1.cs: move the specific 2.1 System.Net code to the
++      assembly System.Net.
++
  2008-04-13  Jb Evain  <jbevain@novell.com>
  
        * WebRequest_2_1.cs, WebResponse_2_1.cs: new files
diff --cc mcs/class/System/System.Net/HttpWebRequest_2_1.cs
index 973b557f24390048fca034bd0aed6f3dfe0d0ec8,973b557f24390048fca034bd0aed6f3dfe0d0ec8..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,44 -1,44 +1,0 @@@
--//
--// System.Net.HttpWebRequest (for 2.1 profile)
--//
--// Authors:
--//    Atsushi Enomoto  <atsushi@ximian.com>
--//  Jb Evain  <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// Permission is hereby granted, free of charge, to any person obtaining
--// a copy of this software and associated documentation files (the
--// "Software"), to deal in the Software without restriction, including
--// without limitation the rights to use, copy, modify, merge, publish,
--// distribute, sublicense, and/or sell copies of the Software, and to
--// permit persons to whom the Software is furnished to do so, subject to
--// the following conditions:
--// 
--// The above copyright notice and this permission notice shall be
--// included in all copies or substantial portions of the Software.
--// 
--// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
--// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
--// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
--// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
--// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
--// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--//
--
--#if NET_2_1
--
--using System;
--
--namespace System.Net { 
--
--      public abstract class HttpWebRequest : WebRequest {
--
--              public abstract bool HaveResponse { get; }
--      }
--}
--
--#endif
diff --cc mcs/class/System/System.Net/HttpWebResponse_2_1.cs
index aa59d5ce4fc25682f1d35e95aff3d19c0d9e15a7,aa59d5ce4fc25682f1d35e95aff3d19c0d9e15a7..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,46 -1,46 +1,0 @@@
--//
--// System.Net.HttpWebResponse (for 2.1 profile)
--//
--// Authors:
--//    Atsushi Enomoto  <atsushi@ximian.com>
--//  Jb Evain  <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// Permission is hereby granted, free of charge, to any person obtaining
--// a copy of this software and associated documentation files (the
--// "Software"), to deal in the Software without restriction, including
--// without limitation the rights to use, copy, modify, merge, publish,
--// distribute, sublicense, and/or sell copies of the Software, and to
--// permit persons to whom the Software is furnished to do so, subject to
--// the following conditions:
--// 
--// The above copyright notice and this permission notice shall be
--// included in all copies or substantial portions of the Software.
--// 
--// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
--// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
--// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
--// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
--// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
--// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--//
--
--#if NET_2_1
--
--using System;
--
--namespace System.Net {
--
--      public abstract class HttpWebResponse : WebResponse {
--
--              public abstract string Method { get; }
--              public abstract HttpStatusCode StatusCode { get; }
--              public abstract string StatusDescription { get; }
--      }
--}
--
--#endif
diff --cc mcs/class/System/System.Net/WebHeaderCollection_2_1.cs
index 0845801004264f5c171bd88bad4584f3e56c123c,0845801004264f5c171bd88bad4584f3e56c123c..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,157 -1,157 +1,0 @@@
--//
--// System.Net.WebHeaderCollection (for 2.1 profile)
--//
--// Authors:
--//    Jb Evain  <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// Permission is hereby granted, free of charge, to any person obtaining
--// a copy of this software and associated documentation files (the
--// "Software"), to deal in the Software without restriction, including
--// without limitation the rights to use, copy, modify, merge, publish,
--// distribute, sublicense, and/or sell copies of the Software, and to
--// permit persons to whom the Software is furnished to do so, subject to
--// the following conditions:
--//
--// The above copyright notice and this permission notice shall be
--// included in all copies or substantial portions of the Software.
--//
--// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
--// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
--// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
--// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
--// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
--// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--//
--
--#if NET_2_1
--
--using System;
--using System.Collections.Generic;
--
--namespace System.Net {
--
--      public class WebHeaderCollection {
--
--              Dictionary<string, string> headers = new Dictionary<string, string> ();
--
--              public WebHeaderCollection ()
--              {
--              }
--
--              public int Count {
--                      get { return headers.Count; }
--              }
--
--              public ICollection<string> Headers {
--                      get { return new List<string> (headers.Keys); }
--              }
--
--              public string this [string header] {
--                      get {
--                              string value;
--                              if (headers.TryGetValue (header, out value))
--                                      return value;
--
--                              return string.Empty;
--                      }
--                      set { headers [header] = value; }
--              }
--
--              public string this [HttpRequestHeader header] {
--                      get { return this [HttpRequestHeaderToString (header)]; }
--                      set { this [HttpRequestHeaderToString (header)] = value; }
--              }
--
--              static string HttpResponseHeaderToString (HttpResponseHeader header)
--              {
--                      switch (header) {
--                      case HttpResponseHeader.CacheControl:           return "cache-control";
--                      case HttpResponseHeader.Connection:                     return "connection";
--                      case HttpResponseHeader.Date:                           return "date";
--                      case HttpResponseHeader.KeepAlive:                      return "keep-alive";
--                      case HttpResponseHeader.Pragma:                         return "pragma";
--                      case HttpResponseHeader.Trailer:                        return "trailer";
--                      case HttpResponseHeader.TransferEncoding:       return "transfer-encoding";
--                      case HttpResponseHeader.Upgrade:                        return "upgrade";
--                      case HttpResponseHeader.Via:                            return "via";
--                      case HttpResponseHeader.Warning:                        return "warning";
--                      case HttpResponseHeader.Allow:                          return "allow";
--                      case HttpResponseHeader.ContentLength:          return "content-length";
--                      case HttpResponseHeader.ContentType:            return "content-type";
--                      case HttpResponseHeader.ContentEncoding:        return "content-encoding";
--                      case HttpResponseHeader.ContentLanguage:        return "content-language";
--                      case HttpResponseHeader.ContentLocation:        return "content-location";
--                      case HttpResponseHeader.ContentMd5:                     return "content-md5";
--                      case HttpResponseHeader.ContentRange:           return "content-range";
--                      case HttpResponseHeader.Expires:                        return "expires";
--                      case HttpResponseHeader.LastModified:           return "last-modified";
--                      case HttpResponseHeader.AcceptRanges:           return "accept-ranges";
--                      case HttpResponseHeader.Age:                            return "age";
--                      case HttpResponseHeader.ETag:                           return "etag";
--                      case HttpResponseHeader.Location:                       return "location";
--                      case HttpResponseHeader.ProxyAuthenticate:      return "proxy-authenticate";
--                      case HttpResponseHeader.RetryAfter:                     return "retry-after";
--                      case HttpResponseHeader.Server:                         return "server";
--                      case HttpResponseHeader.SetCookie:                      return "set-cookie";
--                      case HttpResponseHeader.Vary:                           return "vary";
--                      case HttpResponseHeader.WwwAuthenticate:        return "www-authenticate";
--                      default:                                                                        throw new ArgumentException ();
--                      }
--              }
--
--              static string HttpRequestHeaderToString (HttpRequestHeader header)
--              {
--                      switch (header) {
--                      case HttpRequestHeader.CacheControl:            return "cache-control";
--                      case HttpRequestHeader.Connection:                      return "connection";
--                      case HttpRequestHeader.Date:                            return "date";
--                      case HttpRequestHeader.KeepAlive:                       return "keep-alive";
--                      case HttpRequestHeader.Pragma:                          return "pragma";
--                      case HttpRequestHeader.Trailer:                         return "trailer";
--                      case HttpRequestHeader.TransferEncoding:        return "transfer-encoding";
--                      case HttpRequestHeader.Upgrade:                         return "upgrade";
--                      case HttpRequestHeader.Via:                                     return "via";
--                      case HttpRequestHeader.Warning:                         return "warning";
--                      case HttpRequestHeader.Allow:                           return "allow";
--                      case HttpRequestHeader.ContentLength:           return "content-length";
--                      case HttpRequestHeader.ContentType:                     return "content-type";
--                      case HttpRequestHeader.ContentEncoding:         return "content-encoding";
--                      case HttpRequestHeader.ContentLanguage:         return "content-language";
--                      case HttpRequestHeader.ContentLocation:         return "content-location";
--                      case HttpRequestHeader.ContentMd5:                      return "content-md5";
--                      case HttpRequestHeader.ContentRange:            return "content-range";
--                      case HttpRequestHeader.Expires:                         return "expires";
--                      case HttpRequestHeader.LastModified:            return "last-modified";
--                      case HttpRequestHeader.Accept:                          return "accept";
--                      case HttpRequestHeader.AcceptCharset:           return "accept-charset";
--                      case HttpRequestHeader.AcceptEncoding:          return "accept-encoding";
--                      case HttpRequestHeader.AcceptLanguage:          return "accept-language";
--                      case HttpRequestHeader.Authorization:           return "authorization";
--                      case HttpRequestHeader.Cookie:                          return "cookie";
--                      case HttpRequestHeader.Expect:                          return "expect";
--                      case HttpRequestHeader.From:                            return "from";
--                      case HttpRequestHeader.Host:                            return "host";
--                      case HttpRequestHeader.IfMatch:                         return "if-match";
--                      case HttpRequestHeader.IfModifiedSince:         return "if-modified-since";
--                      case HttpRequestHeader.IfNoneMatch:                     return "if-none-match";
--                      case HttpRequestHeader.IfRange:                         return "if-range";
--                      case HttpRequestHeader.IfUnmodifiedSince:       return "if-unmodified-since";
--                      case HttpRequestHeader.MaxForwards:                     return "max-forwards";
--                      case HttpRequestHeader.ProxyAuthorization:      return "proxy-authorization";
--                      case HttpRequestHeader.Referer:                         return "referer";
--                      case HttpRequestHeader.Range:                           return "range";
--                      case HttpRequestHeader.Te:                                      return "te";
--                      case HttpRequestHeader.Translate:                       return "translate";
--                      case HttpRequestHeader.UserAgent:                       return "user-agent";
--                      default:                                                                        throw new ArgumentException ();
--                      }
--              }
--      }
--}
--
--#endif
diff --cc mcs/class/System/System.Net/WebRequest_2_1.cs
index 856ff6bbe97999a64c095671c889fec181cd04bc,856ff6bbe97999a64c095671c889fec181cd04bc..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,89 -1,89 +1,0 @@@
--//
--// System.Net.WebRequest (for 2.1 profile)
--//
--// Authors:
--//    Jb Evain  <jbevain@novell.com>
--//
--// (c) 2008 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// Permission is hereby granted, free of charge, to any person obtaining
--// a copy of this software and associated documentation files (the
--// "Software"), to deal in the Software without restriction, including
--// without limitation the rights to use, copy, modify, merge, publish,
--// distribute, sublicense, and/or sell copies of the Software, and to
--// permit persons to whom the Software is furnished to do so, subject to
--// the following conditions:
--//
--// The above copyright notice and this permission notice shall be
--// included in all copies or substantial portions of the Software.
--//
--// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
--// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
--// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
--// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
--// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
--// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--//
--
--#if NET_2_1
--
--using System;
--using System.IO;
--
--namespace System.Net {
--
--      public abstract class WebRequest {
--
--              static Type browser_http_request;
--
--              public abstract string ContentType { get; set; }
--              public abstract WebHeaderCollection Headers { get; set; }
--              public abstract string Method { get; set; }
--              public abstract Uri RequestUri { get; }
--
--              protected WebRequest ()
--              {
--              }
--
--              public abstract void Abort();
--              public abstract IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state);
--              public abstract IAsyncResult BeginGetResponse (AsyncCallback callback, object state);
--              public abstract Stream EndGetRequestStream (IAsyncResult asyncResult);
--              public abstract WebResponse EndGetResponse (IAsyncResult asyncResult);
--
--              public static WebRequest Create (Uri uri)
--              {
--                      if (!uri.Scheme.StartsWith ("http"))
--                              throw new NotSupportedException (string.Format ("Scheme {0} not supported", uri.Scheme));
--
--                      return CreateBrowserHttpRequest (uri);
--              }
--
--              static WebRequest CreateBrowserHttpRequest (Uri uri)
--              {
--                      if (browser_http_request == null)
--                              browser_http_request = GetBrowserHttpFromMoonlight ();
--
--                      return (WebRequest) Activator.CreateInstance (browser_http_request, new object [] { uri });
--              }
--
--              static Type GetBrowserHttpFromMoonlight ()
--              {
--                      var type = Type.GetType ("System.Windows.Browser.Net.BrowserHttpWebRequest, Mono.Moonlight");
--                      if (type == null)
--                              throw new NotSupportedException ("Can not get BrowserHttpWebRequest");
--
--                      return type;
--              }
--
--              public static bool RegisterPrefix (string prefix, IWebRequestCreate creator)
--              {
--                      throw new NotSupportedException ();
--              }
--      }
--}
--
--#endif
diff --cc mcs/class/System/System.Net/WebResponse_2_1.cs
index fd590cb0553f115082b8eb3644728f388526c447,fd590cb0553f115082b8eb3644728f388526c447..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,59 -1,59 +1,0 @@@
--//
--// System.Net.HttpWebResponse (for 2.1 profile)
--//
--// Authors:
--//    Jb Evain  <jbevain@novell.com>
--//
--// (c) 2007 Novell, Inc. (http://www.novell.com)
--//
--
--//
--// Permission is hereby granted, free of charge, to any person obtaining
--// a copy of this software and associated documentation files (the
--// "Software"), to deal in the Software without restriction, including
--// without limitation the rights to use, copy, modify, merge, publish,
--// distribute, sublicense, and/or sell copies of the Software, and to
--// permit persons to whom the Software is furnished to do so, subject to
--// the following conditions:
--//
--// The above copyright notice and this permission notice shall be
--// included in all copies or substantial portions of the Software.
--//
--// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
--// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
--// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
--// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
--// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
--// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--//
--
--#if NET_2_1
--
--using System;
--using System.IO;
--
--namespace System.Net {
--
--      public abstract class WebResponse : IDisposable {
--
--              public abstract long ContentLength { get; }
--              public abstract string ContentType { get; }
--              public abstract Uri ResponseUri { get; }
--
--              protected WebResponse ()
--              {
--              }
--
--              public abstract void Close ();
--              public abstract void Dispose (bool disposing);
--              public abstract Stream GetResponseStream ();
--
--              void IDisposable.Dispose ()
--              {
--                      Dispose (true);
--              }
--      }
--}
--
--#endif