knowing when a request / response has been modified

We use multiple irules per virtual server - each irule performs some fairly isolated functionality. For example, one irule does some load balancing stuff, one does site down server, etc. So far, we’ve been able to keep them separate. This seems to make sense because the functionality is not really related.

Now we’ve run into a issue because in certain situations each of the irules needs to do something to the current request (ex: HTTP::redirect or HTTP::header insert). If both of these conditions are met, we get the “Operation not supported” error. This seems reasonable, because we shouldn’t be doing that, so we put in a bit of a hack IMO that sets a variable in one irule that is checked in the other irules. Of course, now the irules are tied together.

So my question: Is there some irule call to query if a reponse / request has been modified / sent on so that we can know not to do HTTP header manipulation?

No, there isn’t a specific call for that.

Your “bit of a hack” is the recommended approach -- basically using a variable as a flag for subsequent logic.

/deb