It may be sometimes useful/required to check (or even modify) every header in the request.
For example, one of the use cases we have is to allow only white listed headers in the response and strip off the others. Another use case is related to SPDY client connections, where some older origins don¹t support lower case headers and require each header to be converted to camel case. Thanks, Sudheer On 8/15/14, 1:55 PM, "James Peach" <jpe...@apache.org> wrote: >On Aug 15, 2014, at 10:23 AM, Alan M. Carroll ><a...@network-geographics.com> wrote: > >> This came up yesterday on the IRC. The problem is that every call to >>TSMimeHdrFieldNext allocates a MIME field handle which gets very slow if >>you use the function heavily. One suggested approach was to switch the >>allocator from a global to a per thread. >> >> I think it might be better to add TSMimeHdrFieldHandleNext() which >>updates the MIME field handle in place. Does this seem like a reasonable >>API addition? > >What's a real use case for iterating over all the headers? > >J