hurl/integration/tests_ok/get_large.py
2023-06-16 13:44:52 +00:00

15 lines
349 B
Python

from app import app
from flask import make_response
from io import BytesIO
@app.route("/get_large")
def get_large():
result = BytesIO()
for _ in range(1024 * 1024 * 32):
result.write(b"0123456789abcdef")
data = result.getvalue()
resp = make_response(data)
resp.content_type = "application/octet-stream"
return resp