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!
Here’s an example with Hono:
https://www.val.town/embed/tmcw.honoExample
And one with Peko:
https://www.val.town/embed/tmcw.pekoExample
And nhttp:
https://www.val.town/embed/tmcw.nhttpExample
A super tiny example with itty-router: