1. 程式人生 > >flask file & stream (upload/download/method/stream)

flask file & stream (upload/download/method/stream)

pytho htm href ons response nload .html flask http

demo

http://www.bjhee.com/flask-ad5.html

cd flask-ad5

python flask-ad5.py

1) http://0.0.0.0:5000/

hello,world !

2) http://0.0.0.0:5000/upload

upload file

3) http://0.0.0.0:5000/large.csv

download large.csv file

4) http://0.0.0.0:5000//method

yield request method

5) http://0.0.0.0:5000/stream.html

read server.log and response

flask file & stream (upload/download/method/stream)