[minor] Allow middleware only to be ran for http or upgrade's