/// <summary> /// Redirects the specified URL. /// </summary> /// <param name="url">The URL.</param> private void Redirect(string url) { IDisposable oldRequest = request; IDisposable oldResponse = response; request = SimpleHttpRequest.Create(url, response.Cookies, request.IsAuthenticated); response = SimpleHttpResponse.Create(Redirect); oldRequest.Dispose(); oldResponse.Dispose(); }
private SimpleHttpContext(string requestUrl) { request = SimpleHttpRequest.Create(requestUrl, new HttpCookieCollection(), true); response = SimpleHttpResponse.Create(Redirect); session = SimpleHttpSession.Create(true); }