It's important to understand that Flask is really, really, really tiny. Most of the meaningful code about handling requests etc etc etc is in Werkzeug. Flask is really a small layer adding some convenience functions and tying into templating.
This is very true. I can't count the number of times that I've had to dive into werkzeug code while trying to figure out how Flask was doing something.