Improve Remap plugin "instantiation" to send the parse From and To URL
----------------------------------------------------------------------
Key: TS-1000
URL: https://issues.apache.org/jira/browse/TS-1000
Project: Traffic Server
Issue Type: New Feature
Components: TS API
Reporter: Leif Hedstrom
Assignee: Leif Hedstrom
Right now, when you instantiate a remap plugin (via TSRemapNewInstance), you
always get the following "parameters"
argv[0] == The FromURL from remap.config, as a string
argv[1] == The ToURL from remap.config, as a string
Even though this might be useful, it would be much more useful to also have the
actual "parsed" URL objects passed to the instantiator. In fact, the strings
for the above are simply created upon plugin instantiation, e.g.
err = mp->fromURL.string_get(NULL))
I'm not sure how we can accomplish this without breaking the APIs. Well,
without breaking the APIs, we'd have to create a new entry point for plugins to
use, e.g.
TSRemapNewInstanceWithUrls()
which adds the from and to URLs as arguments. I'd then argue that argv[0] and
argv[1] should not be populated, i.e. make it up to the plugin implementor if
he wants to call the string_get() or not.
Thoughts?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira