This topic created in 2440 days ago, the information mentioned may be changed or developed.
flask 正常情况下,会返回 response 对象,目前有个需求是返回纯粹的字符串,这个怎么才能做到的
2 replies • 2019-12-29 08:17:45 +08:00
 |
|
1
whoami9894 Dec 28, 2019
直接`return 'string'`就行啊,动态类型,框架都帮你做好了
|
 |
|
2
JQM Dec 29, 2019 via iPhone
不返回 response 怎么发出去?看下源代码里面对 wsgi 的调用 我只知道可以把 content-type 改成 text/plain
|