RTT wrote: > Hi everyone! > > Is there any simple way to handle other than the GET, POST and HEADER > request methods,... as OPTIONS,...? > The way it is now, the THttpConnection.ProcessRequest procedure always > respond with a Answer501, not giving any chance to handle other > methods. I think a TriggerOnUnknownMethod event would be very useful.
I think so as well, should be named TriggerUnknownMethod and event OnUnknowMethod. > By the way, the TriggerBeforeAnswer is used in what scenarios? From > the code above, it seems the answer has been delivered already. Indeed, maybe Angus can answer it, he added it? > > Another thing that would be useful, if added to the code base of the > THttpConnection, is the possibility to send additional headers from > the THttpConnection.SendDocument, to define cache control, etc.. > procedure THttpConnection.SendDocument(SendType : THttpSendType; const > aHeader:string=''); > ... > if FLastModified <> 0 then > Header := Header + 'Last-Modified: ' + > RFC1123_Date(FLastModified) + ' GMT' + #13#10; > if ContEncoderHdr <> '' then > Header := Header + ContEncoderHdr; { V7.20 } > if aHeader > '' then > Header := Header + aHeader > Header := Header + GetKeepAliveHdrLines + #13#10; > ... Useful as well, probably the parameter should be named "CustomHeaders", it's a bit confusing since one has to know which headers are added by the method. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be