Jump to content

Setting ResponseNo=200 Without Setting Handled=True In ServerModule


Frederick

Recommended Posts

In my ServerModule's OnHttpCommand event, will the calling server receive a 200 response code if set it without setting Handled=True?

procedure TUniServerModule.UniGUIServerModuleHTTPCommand(
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo;
  var Handled: Boolean);
begin
    AResponseInfo.ResponseNo:=200;
    // Handled:=True;
end;

I want to do this because I need to perform some extensive processing with the received parameters in the Main Form.

Additionally, I see that there is a command for UniSession.AResponse.Responseno:=200 that can be used in a session. What does this do for the calling server?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1560)
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...