How to enbale HTTP/2 on F5 via irule

Hi All,

Is there any option to enable HTTP/2 via irule for a specific hostname.

Below is the current setup .

LAB-INTERNAL-iRule
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
labred.local.ae {
pool Lab-red-pool }
labblue.local.ae {
pool Lab-blue-pool }
}

Is there any option to enable HTTP/2 on labred.local.ae for fronsend connectivity (Client → F5)side.

Not tested but something can be written like this

when CLIENT_ACCEPTED {
set url [string tolower [HTTP::host]]
}

when HTTP_REQUEST {
if { [$url eq "labred.local.ae"] && [HTTP2::active] } {
    pool Lab-red-pool }
elseif { [$url eq "labblue.local.ae"] } {
	 pool Lab-blue-pool }
	}
}

Did this work for you @Preet_pk ?