RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWSDLHTMLPublish.HandleRequest Method

Generates the response for an incoming request message.

Pascal
function HandleRequest(Resp: TStringList; const Path: String; const HostScriptBaseURL: String; var ContentType: String; Request: TWebRequest): integer;
C++
__fastcall int HandleRequest(TStringList Resp, const AnsiString Path, const AnsiString HostScriptBaseURL, AnsiString ContentType, TWebRequest Request);

The DispatchRequest method calls HandleRequest to generate the content of the HTTP response message it fills out. Typically, applications should not need to call this method. 

Resp is a string list to which HandleRequest writes the content of the response. 

Path is the path information taken from the incoming request message. 

HostScriptBaseURL is the URL for the script name to which the incoming request is addressed. 

ContentType returns the content type of the response that is written to Resp. This becomes the value of a ContentType header on the response message. 

Request is the request message for which this method generates a response. 

HandleRequest returns the StatusCode for the generated response. This becomes the StatusCode property of the response message. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!