diff --git a/src/modules/textopsx/README b/src/modules/textopsx/README index 38245778605..ad9277ce373 100644 --- a/src/modules/textopsx/README +++ b/src/modules/textopsx/README @@ -39,6 +39,7 @@ Daniel-Constantin Mierla 2.18. textopsx.f.hf_iterator_next(iname) 2.19. hf_iterator_rm(iname) 2.20. hf_iterator_append(iname, htext) + 2.21. hf_iterator_insert(iname, htext) 3. Selects @@ -68,7 +69,8 @@ Daniel-Constantin Mierla 1.18. hf_iterator_next usage 1.19. hf_iterator_rm usage 1.20. hf_iterator_append usage - 1.21. @hf_value select usage + 1.21. hf_iterator_insert usage + 1.22. @hf_value select usage Chapter 1. Admin Guide @@ -97,6 +99,7 @@ Chapter 1. Admin Guide 2.18. textopsx.f.hf_iterator_next(iname) 2.19. hf_iterator_rm(iname) 2.20. hf_iterator_append(iname, htext) + 2.21. hf_iterator_insert(iname, htext) 3. Selects @@ -136,6 +139,7 @@ Chapter 1. Admin Guide 2.18. textopsx.f.hf_iterator_next(iname) 2.19. hf_iterator_rm(iname) 2.20. hf_iterator_append(iname, htext) + 2.21. hf_iterator_insert(iname, htext) 2.1. msg_apply_changes() @@ -517,6 +521,26 @@ hf_iterator_end("i1"); hf_iterator_end("i1"); ... +2.21. hf_iterator_insert(iname, htext) + + Add headers before the one at the current iterator possition. + + The parameters can be dynamic strings with variables. + + This function can be used from ANY_ROUTE. + + Example 1.21. hf_iterator_insert usage +... + hf_iterator_start("i1"); + while(hf_iterator_next("i1")) { + if($hfitname(i1)=="My-Header") { + hf_iterator_insert("i1", "My-New-Header: abc\r\n"); + break; + } + } + hf_iterator_end("i1"); +... + 3. Selects 3.1. @hf_value @@ -552,7 +576,7 @@ hf_iterator_end("i1"); * IDX - Value index, negative value counts from bottom * PARAM_NAME - name of parameter - Example 1.21. @hf_value select usage + Example 1.22. @hf_value select usage ... $a = @hf_value.my_header[1].my_param; xplog("L_ERR", "$sel(@hf_value.via[-1]), $sel(@hf_value.from.tag)\n");