Preet_pk I believe the following is what you're looking for.
when HTTP_REQUEST priority 500 {
switch -- [string tolower [HTTP::host]] {
labred.local.ae {
HTTP::header remove Connection
pool Lab-red-pool
}
labblue.local.ae {
HTTP::header remove Connection
pool Lab-blue-pool
}
}