How do I access Router 2.0, the new Common Runtime router?

Issue

You want to enable, disable or of check the status of Router 2.0 for a particular Common Runtime application.

Router 2.0 unlocks HTTP/2 in the Common Runtime. If you would like to use HTTP/2 on a Common Runtime app, you must enable Router 2.0.

Resolution

Enable the Router

To use the new router, enable it on your app via the Heroku features command:

$ heroku features:enable http-routing-2-dot-0 -a <app name>

After enabling this flag, the application starts receiving traffic through the new Common Runtime router.

Disable the Router

Disable the flag to stop using the new router. You don't need to do anything else to return your app to its previous routing behavior.

$ heroku features:disable http-routing-2-dot-0 -a <app name>

Check if Router 2.0 is enabled

The command below will help you validate if the application is enabled with router 2.0

$ heroku features:info http-routing-2-dot-0 -a <app>

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support