Skip to content

Document how to obtain URL host correctly during early hooks #5742

Description

@zhang15535135608

A note should be added to the document, TSUrlHostGet only allows calls after TS_HTTP_POST_REMAP_HOOK。

In the TS_HTTP_READ_REQUEST_HDR_HOOK phase, you can call TSHttpHdrHostGet to get the host, if you want to get it.

https://docs.trafficserver.apache.org/en/latest/developer-guide/api/functions/TSUrlHostGet.en.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions