hurl/integration/tests_ok/get_large.py

15 lines
349 B
Python
Raw Normal View History

from app import app
2020-11-09 22:08:39 +03:00
from flask import make_response
from io import BytesIO
2023-06-16 14:37:26 +03:00
@app.route("/get_large")
def get_large():
2020-11-09 22:08:39 +03:00
result = BytesIO()
for _ in range(1024 * 1024 * 32):
result.write(b"0123456789abcdef")
2020-11-09 22:08:39 +03:00
data = result.getvalue()
resp = make_response(data)
resp.content_type = "application/octet-stream"
2020-11-09 22:08:39 +03:00
return resp