IntraWeb Archive

XII – New class TIWHttpRequest

XII – New class TIWHttpRequest

As part of the IntraWeb enhancements, we have a new TIWHttpRequest class.

This new class is a complete replacement for the TWebRequest class. One of the goals for the class replacement is to eliminate IntraWeb’s Web Broker dependency, which opens new possibilities for IntraWeb, as to unify project types (Stand Alone Server / ISAPI) as well new ways of hosting your IntraWeb application.

Other important point is that it also dramatically reduces memory requriements for your IntraWeb applications.

How does it affects your application

There is no big impact in your application and the transiction is very simple.

procedure TIWServerController.IWServerControllerBaseAfterDispatch(Request: TIWHttpRequest; aReply: TIWHttpReply);
  // do something;

What you need to do is:

  • Replace occurences of TWebRequest with TIWHttpRequest
  • Add the unit IWHttpRequest to your uses clause.