@app.route('/stream/<int:n>')
def stream_n_messages(request, n):
    n = int(n)
    response = get_dict(request, 'url', 'args', 'headers', 'origin')
    n = min(n, 100)

    def generate_stream():
        for i in range(n):
            response['id'] = i
            yield json.dumps(response, default=json_dumps_default) + '\n'

    return Response(generate_stream(), headers={
        'Content-Type': 'application/json',
        })
Stop profiling.
dataset/ETHPy150Open mozillazg/bustard/tests/httpbin/core.py/stream_n_messages--crossover with--dataset/ETHPy150Open gae-init/gae-init-debug/main/libx/gae_mini_profiler/sampling_profiler.py/Profile.stop