http module: Request is not available
<p>I'm creating an http module where I want to check if a request is coming from an authenticated  user and redirect to the login page if it's not.</p>

<p>I registered the module in the web.config file and I have the following code that's throwing an exception: </p>

<pre><code>public class IsAuthModule : IHttpModule
{
    public void Dispose() { }

    public void Init(HttpApplication TheApp)
    {
        var TheRequest = TheApp.Request;

    }
}
</code></pre>

<p>It throwing an exception that says "Request is not available in this context"</p>

<p>What am I doing wrong?</p>
