Forum Discussion

hoolio's avatar
hoolio
Icon for Cirrostratus rankCirrostratus
Mar 12, 2008

Support for user-defined functions?

Hello,

 

 

I'm curious to know if there is any possibility for supporting user-defined functions. I know that you can't do this currently, but I think it might be helpful. The current issue I'm running into is that I need to copy/paste the same section of code for encrypting, base64 encoding and then URI encoding response headers and content. Then I need to do the opposite on requests. If I could create an encrypt and a decrypt function which handles errors and optimizes the existing functions for this specific implementation, it would save a considerable amount of repetition and simplify writing and maintaining the iRule.

 

 

There have been a few related requests on DC for function support, so I think other people see value in this.

 

 

I can submit a case for a feature request, but I figure I would check here first to see if there is any chance of it being implemented.

 

 

Thanks,

 

Aaron