bryancall commented on issue #5742:
URL: https://github.com/apache/trafficserver/issues/5742#issuecomment-4827214143

   I am closing this as not needed. The premise that TSUrlHostGet can only be 
called after TS_HTTP_POST_REMAP_HOOK is not correct. TSUrlHostGet reads the 
host from a marshal buffer, so it works at any point as long as that buffer has 
the host portion set (for example after TSMBufferCreate plus TSUrlParse), 
independent of which hook is running. The current documentation 
(doc/developer-guide/api/functions/TSUrlHostGet.en.rst) already describes the 
function as a marshal-buffer accessor with no hook-phase requirement, which is 
accurate, so adding a hook call condition would be misleading. This was raised 
by a maintainer on the issue and acknowledged on the related pull request, so 
no documentation change is warranted.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to