.\" Man page generated from reStructuredText. . .TH "TSHTTPTXNPARENTSELECTIONURLSET" "3ts" "Mar 08, 2019" "7.1" "Apache Traffic Server" .SH NAME TSHttpTxnParentSelectionUrlSet \- traffic Server Parent Selection consistent hash URL manipulation API . .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 TSHttpTxnParentSelectionUrlSet(TSHttpTxn\fI\ txnp\fP, TSMBuffer\fI\ bufp\fP, TSMLoc\fI\ offset\fP) .UNINDENT .INDENT 0.0 .TP .B TSReturnCode TSHttpTxnParentSelectionUrlGet(TSHttpTxn\fI\ txnp\fP, TSMBuffer\fI\ bufp\fP, TSMLoc\fI\ offset\fP) .UNINDENT .SH DESCRIPTION .sp The Parent Selection consistent hash feature selects among multiple parent caches based on hashing a URL (the HTTP request header URL). .sp These API functions allow an over\-ride URL to be defined such that the over\-ride URL is hashed instead of the normal (header request) URL. In addition, any filtering options that may be applied to the normal URL (such as qstring) are NOT applied to the over\-ride URL since it is assumed that custom filtering has already been performed prior to explicitly setting the over\-ride URL. .sp Note that the normal URL is only hashed on the path and query string portion (optionally excluded with the qstring option). However, the over\-ride URL is hashed on the entire URL string as returned by URL::string_get_ref(). This includes the scheme and hostname such as "\fI\%http://hostname\fP" which occur prior to the path. .sp If the non\-path URL elements should not be hashed in a meaningful manner, then they should be normalized to some value (if they are required in a valid URL) or excluded (if they are optional) when generating the over\-ride URL. For example, since the over\-ride URL is arbitrary, the URL scheme and hostname can simply be set to "fake://fake.fake" when creating the over\-ride URL. .sp \fI\%TSHttpTxnParentSelectionUrlSet()\fP will set the over\-ride URL. .sp \fI\%TSHttpTxnParentSelectionUrlGet()\fP will get the over\-ride URL. .SH RETURN VALUES .sp All these APIs returns a \fBTSReturnCode\fP, indicating success (\fBTS_SUCCESS\fP) or failure (\fBTS_ERROR\fP) of the operation. .SH SEE ALSO .sp \fBTSAPI(3ts)\fP, \fBTSUrlCreate(3ts)\fP, \fBTSUrlStringGet(3ts)\fP .SH COPYRIGHT 2019, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .