Nearly every web server must fulfill a few basic responsibilities. It must deal with incoming requests by responding to them with the appropriate data. Static web servers will simply respond with the file for the given path. For example,
"/about.html" will find and return the
about.html file from the server's public directory. While this will get the job done in many cases, when we build web applications, we require dynamic responses. Every request, even those to the same URL, can return different data (
"/news.html" should always show the newest news!).