Leif Hedstrom created TS-2598:
---------------------------------

             Summary: Expose HttpDebugNames to public plugin APIs
                 Key: TS-2598
                 URL: https://issues.apache.org/jira/browse/TS-2598
             Project: Traffic Server
          Issue Type: New Feature
          Components: TS API
            Reporter: Leif Hedstrom


It'd be really useful to expose all the HttpDebugNames:: functions into one (or 
several?) API calls.

Either

{code}
const char* TSGetDebugName(type, ID);
{code}

where type would be a new enum of e.g.
typedef enum
{
TS_DEBUG_STATE_NAME,
TS_DEBUG_METHOD_NAME,
TS_DEBUG_EVENT_NAME,
...
} TSDebugNameID;
or perhaps

{code}
const char* TSGetDebugStateName(id);
const char* TSGetDebugMethodName(id);
...
{code}

I personally favor the former, it's more easily extended with future additions.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to