I am running a Flask API with multiple blueprints registered to it, but I want to limit the content length with different sizes for different blueprints.
I want to do something similar to "app.config["MAX_CONTENT_LENGTH"] = 1024" but for each Blueprint rather than the entire app. I read somewhere that you can do request.content_length, but I'm not sure if that is doing the same thing. My end goal is to determine the size without having to load the data into memory. Are there any complications or differences between using request.content_length to check for size vs how flask does it internally with app.config["MAX_CONTENT_LENGTH"]?