|
Writing a basic HTTP server is easy using the
|
|
|
|
|
Create the server which takes a handler function as an argument. |
|
|
The URL that was called |
|
|
Write as the response to the request |
|
|
Starts the simple http server locally on port 3000 |
|
|
Run the server in the background. |
|
|
Once a request is made, the url is printed out. |
|
|
Access the |
|
Next example: Exit.