[Mono-devel-list] [PATCH] changing the implementation of HttpRequest.ServerVariables

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Jun 8 01:02:24 EDT 2004

El lun, 07-06-2004 a las 17:35, Alon Gazit escribió:
> Hello,
> In Order to improve performance , I have change Server Variables
> implementation.
> I performed the following change in HttpRequest:
>       *  Added 2 new properties : Context and WorkerRequest.
>       * The method ParseServerVariables creates a new
>         ServerVariablesCollection instance instead of creating new
>         NameValueCollection that contains all the 
>         server variables.
> ServerVariableCollection is a new class that derive from
> NameValueCollection.
> While trying to get the value associated with a specified key, the new
> class performs the following steps:
>       * Check if the collection was loaded in the past (meaning that
>         all the variables were added). if the answer is yes , 
>         then return the value from the collection. 
>       * if the answer was no ,check if for this key the method can be
>         called directly. if the answer is yes return the method value.
>       * it answer was no, add all the server variables to the
>         collection and return the key's value from the collection.
> Thanks,

Hi Alon,

I tried to compile this and got:
System.Web/ServerVariablesCollection.cs(25,29) error CS0122:
'System.Web.HttpRequest.GetAllHeaders' is inaccessible due to its
protection level
System.Web/ServerVariablesCollection.cs(26,28) error CS0122:
'System.Web.HttpRequest.GetAllHeaders' is inaccessible due to its
protection level
Compilation failed: 2 error(s), 0 warnings

You should also add a header with the file name, author name and the
rest in the new file.


More information about the Mono-devel-list mailing list