You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "jpeach (via GitHub)" <gi...@apache.org> on 2023/05/05 00:36:31 UTC

[GitHub] [trafficserver] jpeach commented on issue #5742: Add a call condition for TSUrlHostGet to the document

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

   > A note should be added to the document, TSUrlHostGet only allows calls after TS_HTTP_POST_REMAP_HOOK。
   
   I'm not sure that is correct. `TSUrlHostGet` takes a URL from a marshal buffer, so as long as that buffer has the host portion set, it should be OK.
   
   So you could do
   ```
       TSMBufferCreate(...)
       TSUrlParse(...)
       TSUrlHostGet(...)
   ```


-- 
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: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org