what is a web framework
-
Although the server is so complicate, it just send plain HTML (CSS,JS) to the client. No magic.
-
The HTTP protocol is based on a request-response model.
-
The communication is always initiated by the client. The server has no way of initiating a connection to you and send your browser unsolicited data.
-
HTTP methods and response codes.
-
POST requests send to a specific URL, which is specified in the form’s HTML.
-
Big two problem: routing and templates
- How do we map a requested URL to the code that is meant to handle it?
- How do we create the requested HTML dynamically, injecting calculated values or information retrieved from a database?
Published at 05 March 2014