You want to write a simple web application from scratch. One of the things you’re going to really need is an URL Router. Why? Let's start from the begining.
What is an URL Router?
An URL Router is the component responsible for receiving requests and dispatching to whatever handlers you have. Let’s take a few steps back.