15 Commits
Author SHA1 Message Date
Marek Habersack e105f08673 2010-03-04 Marek Habersack <[email protected]>
* BuildManager.cs: do less work in the static constructor

2010-03-04  Marek Habersack  <[email protected]>

	* RuntimeHelpers.cs: added. Contains methods moved here from
	HttpRuntime, so that initialization sequence of various objects is
	independent of HttpRuntime.

2010-03-04  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: do less work in the static constructor. Most of
	the code was moved to System.Web.Util.RuntimeHelpers. Properties
	which have been moved: MonoVersion, RunningOnWindows,
	CaseInsensitive, IsDebuggingEnabled

Also:
	- hushed some compiler warnings
	- various classes now use RuntimeHelpers instead of HttpRuntime

svn path=/trunk/mcs/; revision=153038
2010-03-04 19:04:13 +00:00
Marek Habersack b40844116b More 1.1 code and NET_2_0 ifdefs removed
svn path=/trunk/mcs/; revision=145319
2009-11-03 20:19:37 +00:00
Marek Habersack 0513c6ddac 2009-10-20 Marek Habersack <[email protected]>
* OutputCacheModule.cs: keysCache and entriesToInvalidate
	dictionaries are allocated only when they are
	required. BuildManager's RemoveEntry envent is subscribed to only
	if cache actually has some entries.
	Added support for post-cache substitution.

	* CachedRawResponse.cs: data is stored in a list of DataItem
	instances instead of just in a single buffer. This enables support
	for post-cache substitution.

2009-10-20  Marek Habersack  <[email protected]>

	* HttpResponse.cs: implemented the WriteSubstitution method,
	thus enabling post-cache substitution.

svn path=/trunk/mcs/; revision=144487
2009-10-20 19:21:39 +00:00
Marek Habersack 12d560e4e0 2009-03-03 Marek Habersack <[email protected]>
* CachedRawResponse.cs: headers are stored in NameValueCollection
	now.

2009-03-03  Marek Habersack  <[email protected]>

	* HttpResponse.cs: fully implemented the Headers property.
	It is also used in the 1.1 profile, but is internal.

	* HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
	now returns a string with the header value.

	* HttpCacheVaryByParams.cs: GetResponseHeader renamed to
	GetResponseHeaderValue - now returns a string with the header
	value.

	* HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
	instead of an ArrayList

svn path=/trunk/mcs/; revision=128494
2009-03-03 22:55:44 +00:00
Marek Habersack f345ffeea2 2008-10-21 Marek Habersack <[email protected]>
* CapabilitiesChecksum.cs: implement Hex and MapToHex more efficiently.

2008-10-21  Marek Habersack  <[email protected]>

	* OutputCacheModule.cs: seal the class.
	Made OnRawResponseRemoved a static method.

	* CachedVaryBy.cs: seal the class.
	Use portable line terminators instead of literal '\n'.

	* Cache.cs: seal the CacheItem and CacheItemEnumerator classes.

	* CacheDependency.cs: dispose the associated dependency in the
	DependencyDispose method.

	* CachedRawResponse.cs: seal the class

2008-10-21  Marek Habersack  <[email protected]>

	* CapabilitiesLoader.cs: seal BrowserData.
	Seal CapabilitiesLoader.
	Do not lock on typeof (CapabilitiesLoader) in GetCapabilities ().

svn path=/trunk/mcs/; revision=116583
2008-10-21 01:08:23 +00:00
Marek Habersack ef9c9e51ce Do not abuse the 'private' keyword
svn path=/trunk/mcs/; revision=116539
2008-10-20 17:37:54 +00:00
Juraj Skripsky c0fa5b39e4 2008-09-30 Juraj Skripsky <[email protected]>
* CachedRawResponse.cs: Don't allocate a 32k buffer that is never 
	used. Fixes enhancement bug #430963.

svn path=/trunk/mcs/; revision=114502
2008-09-30 19:20:35 +00:00
Kornél Pál 25c6680c8e Don't add Date header in ASP.NET. Fixes bug #363404.
svn path=/trunk/mcs/; revision=96613
2008-02-26 09:52:01 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Lluis Sanchez 99eb13d668 2005-04-01 Lluis Sanchez Gual <[email protected]>
* CachedRawResponse.cs: Fix warning.


svn path=/trunk/mcs/; revision=42467
2005-04-01 17:28:43 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Jackson Harper 1c703c45ac * OutputCacheModule.cs: Remove varyby objects when there are no
more raw responses that belong to them.
	* CachedRawResponse.cs: Keep a reference to the VaryBy object that
	this response belongs to this is so the varyby can be cleaned up.
	* CachedVaryBy.cs: Keep a reference to the keys that belong to the
	varyby and a reference to the varyby's key.

svn path=/trunk/mcs/; revision=21965
2004-01-12 02:58:21 +00:00
Jackson Harper d3895b8c75 * OutputCacheModule.cs: Update the date header value.
* CachedRawResponse.cs: Expose a ref to the date header, so it can
	be easily set/updated. Remove unused methods and vars.

svn path=/trunk/mcs/; revision=21700
2004-01-05 04:10:55 +00:00
Jackson Harper 1889af35df * OutputCacheModule.cs: Store a CachedVaryBy object for each
cached page. Then store a CachedRawResponse for each combination
	of varried parameters for a page.
	* CachedRawResponse.cs: Do not need to store param values anymore
	those are stored in the CachedVaryBy now. Get the content length
	so we dont send back the entire buffer.
	* CachedVaryBy.cs: New file - holds the varyby data for a page,
	and a method to generate a key based on params. Right now this
	only works with VaryByParams. TODO: support VaryByHeaders and
	VaryByCustom.

svn path=/trunk/mcs/; revision=20333
2003-11-22 06:53:51 +00:00
Jackson Harper 54d9ed0618 * Cache.cs: New method so non public cache items can be added.
* CachedRawResponse.cs: New file - A snapshot of a response that
	is stored in the cache and can be used to create a new response.
	* OutputCacheModule.cs: Module for inserting and retrieving
	responses from the cache.

svn path=/trunk/mcs/; revision=20272
2003-11-20 11:50:24 +00:00