RTT wrote: > On 13-12-2011 19:21, Arno Garrels wrote: >>> We don't want to open and load a text file each >>>> time a new type is found. >> True, that would be dog-slow. >> > For the generality of the HTTP server applications, other than the 10 > or 15 most common MIME types (that should always be in the list) and > the > ones that are application specific (application adds these to the > list), all the rest are exotic ones, only requested once in a while, > if even. Reading these from the registry, of even from an external > file, is, IMO, the best way to code it.
Implementation in the webserver component should IMO not load from system/registry by default but just add currently hard coded types. Property MimeTypes could return an instance or interface with methods for everthing else including load from file, registry and resource etc.. -- 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