http2 middleware name changed to upgrade middleware
code refactoring