title: How do I associate some custom data with current HttpRequest?
body: <p>I need to somehow attach my custom data to the <code>HttpRequest</code> being handled by my IIS custom modules - so that code that runs in earlier stages of IIS pipeline attaches an object and code that runs in later stages can retrieve the object and use it and no other functionality of IIS pipeline processing is altered by adding that object.</p>
  
  <p>The data needs to persist within one HTTP request only - I don't need it to be stored between requests. I need it to be "reset" for each new request automatically - so that when a new request comes it doesn't contain objects my code attached to the previous request.</p>
  
  <p>Looks like <a href="http://msdn.microsoft.com/en-us/library/system.web.httpcontext.items.aspx" rel="noreferrer"><code>HttpContext.Items</code></a> is the way to go, although MSDN description of its purpose is not very clear.</p>
  
  <p>Is using <code>HttpContext.Current.Items</code> the way to solve my problem?</p>