org.apache.tomcat.util.http
Class MimeHeaders

java.lang.Object
org.apache.tomcat.util.http.MimeHeaders

public class MimeHeaders

extends java.lang.Object

Memory-efficient repository for Mime Headers. When the object is recycled, it
will keep the allocated headers[] and all the MimeHeaderField - no GC is generated.
For input headers it is possible to use the MessageByte for Fileds - so no GC
will be generated.
The only garbage is generated when using the String for header names/values -
this can't be avoided when the servlet calls header methods, but is easy
to avoid inside tomcat. The goal is to use _only_ MessageByte-based Fields,
and reduce to 0 the memory overhead of tomcat.
TODO:
XXX one-buffer parsing - for http ( other protocols don't need that )
XXX remove unused methods
XXX External enumerations, with 0 GC.
XXX use HeaderName ID