📜  flask 设置 mime 类型 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.878000             🧑  作者: Mango

代码示例1
from flask import Response
@app.route('/ajax_ddl')
def ajax_ddl():
    xml = 'foo'
    return Response(xml, mimetype='text/xml')