[ 
https://issues.apache.org/jira/browse/TS-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call closed TS-1833.
--------------------------
       Resolution: Invalid
    Fix Version/s:     (was: 6.0.0)

Set with an index of 1 would overwrite that value.  If the index is over the 
number of values then it will return without doing anything.

Insert with an index of 1 would insert a new value at that index location.

> Deprecate TSMimeHdrFieldValueStringInsert() (and family)
> --------------------------------------------------------
>
>                 Key: TS-1833
>                 URL: https://issues.apache.org/jira/browse/TS-1833
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Leif Hedstrom
>            Assignee: Leif Hedstrom
>              Labels: api-change
>
> It seems to be that TSMimeHdrFieldValueStringInsert() is really just a subset 
> of TSMimeHdrFieldValueStringSet(). This just makes for confusing APIs, i.e. 
> which one do I use when? The alternative would be to remove the "idx" 
> argument to the TSMimeHdrFieldValueStringSet() method, but that would then 
> break API and ABI compatibility.
> Also, as James found out, the docs are less than clear. Set() needs to be 
> called with an idx of -1 for it to actually be a Set() operation. With idx 
> >=0, TSMimeHdrFieldValueStringSet() is actually identical to 
> TSMimeHdrFieldValueStringInsert()....



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to