Flask - Middleware and Extensions
You want to add middleware that logs request paths and modifies the response to add a custom header. Which approach correctly extends functionality using middleware?
environ['PATH_INFO'], calls the app, then adds header to response before returning correctly logs the request path, calls the app, then modifies the response headers. Others either bypass app or do tasks incorrectly.environ['PATH_INFO'], calls the app, then adds header to response before returning -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions