landro / TesTcl

when you don't have the balls to test your F5 BIG-IP iRules directly in production
https://testcl.com
BSD 3-Clause "New" or "Revised" License
98 stars 30 forks source link

URI:: functionality support #30

Closed samstep closed 6 years ago

samstep commented 10 years ago

I would like request the URI namespace functionality support in TesTcl.

URI::basename - Extracts the basename part of a given uri string. URI::compare - Compares two URI's for equality. URI::decode - Returns a decoded version of a given URI. URI::encode - Returns an encoded version of a given URI. URI::host - Returns the host portion of a given URI. URI::path - Returns the path portion of the given URI. URI::port - Returns the host port from the given URI. URI::protocol - Returns the protocol of the given URI. URI::query - Returns the query string portion of the given URI or the value of a query string parameter.

landro commented 10 years ago

Great proposal, @samstep . I just pushed a stub implementation of this to the uri_commands branch. It should give you an idea of how this should be implemented. Feel free to fork and propose pull requests.

landro commented 10 years ago

@samstep , did you have a chance to look at the branch I created in order to support this? Can I expect a code contribution?

landro commented 9 years ago

just pushed partial URI::encode support to master.

landro commented 6 years ago

Some of this has now been implemented