I didn't try the header_filter plugin.  I wrote my plugin because I prefer
"remap" only mode and I can write config in remap.config (for easy
management and reloading support).

And I guess "global" plugin is not faster than "remap" plugin if have many
map rules. Because every request will go through the global part of the
"global" plugin even if we don't want plugin to process that request. (
just my general opinion about global and remap plugin, not for
header_filter plugin)

Anyway, I'm sure the global plugin is fast enough according to my test
before.  :)

2012/2/6 Leif Hedstrom <[email protected]>

> On 2/5/12 7:40 PM, Conan Wang wrote:
>
>> btw, I'v written a simple remap plugin to do this stuff ( add one header
>> to origin server ).  I modify code in "ats/example/add-header" from
>> "global" plugin to "remap" plugin, so you don't need to configure
>> plugin.config.
>>
>> https://github.com/wkl/add_**header <https://github.com/wkl/add_header>
>> (the header "key:value" should not contain space)
>>
>
> Did the header_filter plugin not work? If so, I'm curious why so I can fix
> it :).
>
> -- Leif
>
>


-- 
Regards,
Conan

Reply via email to