Re: [twsocket] Setting additional Header fields depending on the mimetype in the HTTP Server

2011-12-12 Thread RTT
On 13-12-2011 00:16, Lars Gehre wrote: Overriding said function would mean, I would have to duplicate the code and with each update of ICS I would have to check all my projects for this overriden function. Not very practical. It's easier to change the ICS code once every update... What code are

Re: [twsocket] Setting additional Header fields depending on the mimetype in the HTTP Server

2011-12-12 Thread Lars Gehre
rs > -Original Message- > From: twsocket-boun...@elists.org > [mailto:twsocket-boun...@elists.org] On Behalf Of RTT > Sent: Sunday, December 11, 2011 1:18 AM > To: ICS support mailing > Subject: Re: [twsocket] Setting additional Header fields > depending on the mim

Re: [twsocket] Setting additional Header fields depending on the mimetype in the HTTP Server

2011-12-10 Thread RTT
If you call the SendDocument yourself, you can use this overload version procedure SendDocument(SendType: THttpSendType; const CustomHeaders: string); overload; virtual; { V7.29 } If not, you can override it and pass your custom header in the CustomHeaders parameter, calling the inherited Se

[twsocket] Setting additional Header fields depending on the mimetype in the HTTP Server

2011-12-10 Thread Lars Gehre
Hello, I need to add for certain mime content types special headers to the HTTP header. As an example for static resources the "Expires" or "Cache-Control" headers. Unfortunatly I haven't found a way to do this without overriding (and duplicating) the SendDocument function. Did I miss something