Re: [E] [API] - TSMgmtDataTypeGet - Proposal

2020-09-29 Thread Alan Carroll
+1 No, that's basically it. Except I see no reason this information shouldn't be accessible. On Mon, Sep 28, 2020 at 7:06 PM Walt Karas wrote: > Yes, that makes sense, if you are reading the var name and value from a > JSON/YAML config file, you might want to accept an integral value for a > fl

Re: [E] Re: Proposed new TS plugin API function: TSHttpHdrSchemeGet

2020-09-29 Thread Alan Carroll
I don't see how this would depend on a cache hit or miss. If two requests map to the same object, that's the cache key, not the request scheme. This returns the scheme in hdr->m_http->req.m_url_impl.scheme or hdr->m_http->req.m_url_impl.m_url_type if the former is nullptr. The point here is to pro

Proposal for new TS plugin API function: TSUrlPortGet

2020-09-29 Thread Walt Karas
This gets the port string in the URL. If the port is not in the URL, it returns nullptr (and sets length to zeor). Note this is subtly different from TSUrlPortGet which always returns a valid port, the canonical port for the scheme if the port is not specified. Currently there is no way to detect t