.\" Man page generated from reStructuredText. . . .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 .. .TH "TSHTTPHDRCOPY" "3ts" "Apr 16, 2024" "9.2" "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 .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSHttpHdrCopy(\fI\%TSMBuffer\fP dest_bufp, \fI\%TSMLoc\fP dest_offset, \fI\%TSMBuffer\fP src_bufp, \fI\%TSMLoc\fP src_offset) .UNINDENT .SH DESCRIPTION .sp \fI\%TSHttpHdrCopy()\fP works correctly even if \fIsrc_bufp\fP and \fIdest_bufp\fP point to different \fI\%Marshal Buffers\fP\&. 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 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .