In the previous example we looked at setting up a simple
HTTP server. HTTP servers are useful for
demonstrating the usage of |
|
|
|
|
|
A |
|
Wait for a few seconds before sending a reply to the
client. This could simulate some work the server is
doing. While working, keep an eye on the context’s
|
|
The context’s |
|
|
|
As before, we register our handler on the “/hello” route, and start serving. |
|
Run the server in the background. |
|
Simulate a client request to |
|
Next example: Spawning Processes.