Re: [twsocket] Setting additional Header fields depending onthe mimetype in th

2011-12-14 Thread François Piette
>> The implementation should be delegated to a handling class which could >> be replaced easily by the developper. It see a mechanism based on >> metaclass just like "ClientClass" property use. > Or maybe an interface. Technically interfaces are very good. But ICS is "class based" and introduc

Re: [twsocket] Setting additional Header fields depending onthe mimetype in th

2011-12-14 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: >> The implementation should be delegated to a handling class which >> could be replaced easily by the developper. > > Yes, it will be a new class in the OverbyteIcsMimeUtils unit. Also handy would be a method LoadFromResource: function TWhatEverMimeT

Re: [twsocket] Setting additional Header fields depending onthe mimetype in th

2011-12-14 Thread Arno Garrels
François Piette wrote: >> I'm just about to change to HttpServer MIME handling again, to use a >> look-up list read from the Windows classes registry or a text file) >> when the server starts, to replace the current hard coded MIME list. >> It will be editable by the application. > > The implemen