We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a streaming endpoint. When I turn on flask-compress it stops streaming. Is there a workaround?
app = Flask(__name__) app.config["COMPRESS_REGISTER"] = False # disable default compression of all eligible requests compress = Compress() compress.init_app(app) @app.route("/test") @compress.compressed() def myview(): ... return map(lambda r: json.dumps(r) + "\n", results)
recv times: [1.02,1.02,1.02] recv times without decorator: [0.3, 0.6, 1.02]
The text was updated successfully, but these errors were encountered:
Relates to #30
Sorry, something went wrong.
No branches or pull requests
I have a streaming endpoint. When I turn on flask-compress it stops streaming. Is there a workaround?
recv times: [1.02,1.02,1.02]
recv times without decorator: [0.3, 0.6, 1.02]
The text was updated successfully, but these errors were encountered: