.\" Man page generated from reStructuredText. . .TH "TSHTTPHDRCOPY" "3ts" "Mar 08, 2019" "7.1" "Apache Traffic Server" .SH NAME TSHttpHdrCopy \- copies the contents of the HTTP header located at src_loc within src_bufp to the HTTP header located at dest_loc within dest_bufp . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fI#include \fP .INDENT 0.0 .TP .B TSReturnCode TSHttpHdrCopy(TSMBuffer\fI\ dest_bufp\fP, TSMLoc\fI\ dest_offset\fP, TSMBuffer\fI\ src_bufp\fP, TSMLoc\fI\ src_offset\fP) .UNINDENT .SH DESCRIPTION .sp \fI\%TSHttpHdrCopy()\fP works correctly even if \fIsrc_bufp\fP and \fIdest_bufp\fP point to different developer\-plugins\-http\-headers\-marshal\-buffers\&. Make sure that you create the destination HTTP header before copying into it. .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 \fI\%TSHttpHdrCopy()\fP appends the port number to the domain of the URL portion of the header. For example, a copy of \fI\%http://www.example.com\fP appears as \fI\%http://www.example.com:80\fP in the destination buffer. .UNINDENT .UNINDENT .SH COPYRIGHT 2019, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .