Didier_Fort_226
Jan 02, 2013Altostratus
iRule: TCP::close after HTTP::respond
Hello,
I searched on DC and could not find a straight answer to this question so here it is.
Let's say I have the following iRule:
rule my_irule {
when HTTP_REQUEST priority 100 {
if { [expression] } {
HTTP::respond 200 content [findclass [string tolower [string range [HTTP::uri] 1 end]] myclass ","] "Content-Type" "text/plain" "Cache-Control" "private, max-age=1814400"
}
}
}
After the HTTP::respond I'd like to prevent other iRules to run on this connection.
What is the recommendation?
My guess would be to run both:
TCP::close
Thanks in advance,
Didier