You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2014/05/30 23:04:59 UTC
[27/50] [abbrv] git commit: Add a comment on not using the Insert()
APIs, but Set() instead
Add a comment on not using the Insert() APIs, but Set() instead
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d24e76b6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d24e76b6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d24e76b6
Branch: refs/heads/5.0.x
Commit: d24e76b6a34e40becd4f001c48ef9684ab096aed
Parents: f125090
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed May 28 15:51:15 2014 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed May 28 16:03:37 2014 -0600
----------------------------------------------------------------------
proxy/api/ts/ts.h | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d24e76b6/proxy/api/ts/ts.h
----------------------------------------------------------------------
diff --git a/proxy/api/ts/ts.h b/proxy/api/ts/ts.h
index 30f14ce..4978903 100644
--- a/proxy/api/ts/ts.h
+++ b/proxy/api/ts/ts.h
@@ -1015,6 +1015,7 @@ extern "C"
tsapi TSReturnCode TSMimeHdrFieldValueAppend(TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx,
const char* value, int length);
+ /* These Insert() APIs should be considered. Use the corresponding Set() API instead */
tsapi TSReturnCode TSMimeHdrFieldValueStringInsert(TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx,
const char* value, int length);
tsapi TSReturnCode TSMimeHdrFieldValueIntInsert(TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, int value);