One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and their helper methods!

Hono

Here’s an example with Hono:

https://www.val.town/embed/tmcw.honoExample

Peko

And one with Peko:

https://www.val.town/embed/tmcw.pekoExample

nhttp

And nhttp:

https://www.val.town/embed/tmcw.nhttpExample

itty-router

A super tiny example with itty-router:

https://www.val.town/embed/tmcw.ittyRouterExample