Assign message Policy Set Header versus Add Headers

Hi,

What is the difference when I use Set Headers and Add Headers with Assign Message Policy. Both the approaches are working for me.

 <Set>
        <Headers>
            <Header name="findme">{request.queryparam.search}</Header>
        </Headers>
    </Set>


<Add>
        <Headers>
            <Header name="findme">{request.queryparam.search}</Header>
        </Headers>
    </Add>
Solved Solved
1 2 4,033
1 ACCEPTED SOLUTION

sidd-harth
Participant V

Hi @Siva Prasad Rao Janapati, If there is no existing value, then Set and Add are equivalent.

If there is an exisiting value, Set will over-write any existing value & Add will append to any existing value.

Moreover the sub-elements of <Set> support the dynamic string substitution feature called message templating.

View solution in original post

2 REPLIES 2

sidd-harth
Participant V

Hi @Siva Prasad Rao Janapati, If there is no existing value, then Set and Add are equivalent.

If there is an exisiting value, Set will over-write any existing value & Add will append to any existing value.

Moreover the sub-elements of <Set> support the dynamic string substitution feature called message templating.

hello Siddharth Barahalikar . ¿How could I contact you to arrange a paid consultancy to finish a configuration task of a reverse proxy server Apigee that is causing me errors?