|
|
@@ -58,8 +58,10 @@ namespace System.Net
|
|
|
static HybridDictionary prefixes = new HybridDictionary ();
|
|
|
static bool isDefaultWebProxySet;
|
|
|
static IWebProxy defaultWebProxy;
|
|
|
+
|
|
|
+#if !NET_2_1
|
|
|
static RequestCachePolicy defaultCachePolicy;
|
|
|
-
|
|
|
+#endif
|
|
|
// Constructors
|
|
|
|
|
|
static WebRequest ()
|
|
|
@@ -114,14 +116,6 @@ namespace System.Net
|
|
|
authentication_level = value;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- [MonoTODO ("Implement the caching system. Currently always returns a policy with the NoCacheNoStore level")]
|
|
|
- public virtual RequestCachePolicy CachePolicy
|
|
|
- {
|
|
|
- get { return DefaultCachePolicy; }
|
|
|
- set {
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
public virtual string ConnectionGroupName {
|
|
|
get { throw GetMustImplement (); }
|
|
|
@@ -143,6 +137,15 @@ namespace System.Net
|
|
|
set { throw GetMustImplement (); }
|
|
|
}
|
|
|
|
|
|
+#if !NET_2_1
|
|
|
+ [MonoTODO ("Implement the caching system. Currently always returns a policy with the NoCacheNoStore level")]
|
|
|
+ public virtual RequestCachePolicy CachePolicy
|
|
|
+ {
|
|
|
+ get { return DefaultCachePolicy; }
|
|
|
+ set {
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public static RequestCachePolicy DefaultCachePolicy
|
|
|
{
|
|
|
get { return defaultCachePolicy; }
|
|
|
@@ -150,6 +153,7 @@ namespace System.Net
|
|
|
throw GetMustImplement ();
|
|
|
}
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
public virtual WebHeaderCollection Headers {
|
|
|
get { throw GetMustImplement (); }
|