TSUrlHostGet
const char * (TSMBuffer bufp, offset, int * length)
const char * TSUrlSchemeGet
(TSMBuffer bufp, offset, int * length)
const char * TSUrlUserGet
(TSMBuffer bufp, offset, int * length)
const char * TSUrlPasswordGet
(TSMBuffer bufp, offset, int* length)
const char * TSUrlPathGet
(TSMBuffer bufp, offset, int * length)
const char * TSUrlHttpQueryGet
(TSMBuffer bufp, offset, int * length)
const char * (TSMBuffer bufp, offset, int * length)
const char * TSUrlHttpFragmentGet
(TSMBuffer bufp, offset, int * length)
TSUrlSchemeGet()
, , TSUrlPasswordGet()
, , TSUrlPathGet()
, , TSUrlHttpQueryGet()
and each retrieve an internal pointer to the specified portion of the URL from the marshall buffer bufp. The length of the returned string is placed in length and a pointer to the URL portion is returned.
TSUrlPortGet()
retrieves the port number portion of the URL located at offset within the marshal buffer bufp. If there is no explicit port number in the URL, a canonicalized valued is returned based on the URL scheme.
All APIs except returns a string, which is not guaranteed to be NULL terminated. You must therefore always use the length value to determine the actual length of the returned string.
TSUrlPortGet()
simply returns the port number as an integer, possibly canonicalized with 80
for HTTP and for HTTPS schemes. If there is neither port nor scheme information available in the URL, 0
is returned.