.\" 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 "TSURLHOSTSET" "3ts" "Jan 06, 2024" "9.2" "Apache Traffic Server" .SH NAME TSUrlHostSet \- traffic Server URL component manipulation API .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlHostSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlSchemeSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlUserSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlPasswordSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlPortSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, int port) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlPathSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlHttpQuerySet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlHttpParamsSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSUrlHttpFragmentSet(\fI\%TSMBuffer\fP bufp, \fI\%TSMLoc\fP offset, const char *value, int length) .UNINDENT .SH DESCRIPTION .sp The URL data structure is a parsed version of a standard internet URL. The Traffic Server URL API provides access to URL data stored in marshal buffers. The URL functions can create, copy, retrieve or delete entire URLs, and retrieve or modify parts of URLs, such as their host, port or scheme information. .sp \fI\%TSUrlSchemeSet()\fP, \fI\%TSUrlUserSet()\fP, \fI\%TSUrlPasswordSet()\fP, \fI\%TSUrlHostSet()\fP, \fI\%TSUrlHttpParamsSet()\fP, \fI\%TSUrlHttpQuerySet()\fP and \fI\%TSUrlHttpFragmentSet()\fP each set the specified portion of the URL located at offset within the marshal buffer \fIbufp\fP to the string value. If \fIlength\fP is \fB\-1\fP then these functions assume that value is NULL\-terminated. Otherwise, the length of the \fIstring\fP value is taken to be the value of \fIlength\fP\&. These functions copy the string to within \fIbufp\fP, so it can be subsequently modified or deleted. .sp \fI\%TSUrlPortSet()\fP sets the port number portion of the URL located at \fIoffset\fP within the marshal buffer \fIbufp\fP to the value port. Normal canonicalization based on the URL scheme still applies. .SH RETURN VALUES .sp All these APIs returns a \fI\%TSReturnCode\fP, indicating success (\fI\%TS_SUCCESS\fP) or failure (\fI\%TS_ERROR\fP) of the operation. .SH SEE ALSO .sp \fBTSAPI(3ts)\fP, \fBTSUrlCreate(3ts)\fP, \fBTSUrlHostGet(3ts)\fP, \fBTSUrlStringGet(3ts)\fP, \fBTSUrlPercentEncode(3ts)\fP .SH COPYRIGHT 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .