- Run
python middlware.py
. - Using HTTPie, request data:
http :8000/data
. This should return the list of numbers from the server. - Add a simple middleware that just uses
print
to print a message in the server logs before and after a request is seen. - Add a second middleware that also prints.
Question: Do the middlewares get run in the order that they are added in middlware.py
or in the reverse order?