To set a Content-Type
header to the response.headers.
Example:
# ...
@app.route('/hello')
async def hello_world(request, response):
response.set_content_type('text/plain')
return 'Hello, World!'
# ...
To set a Content-Type
header to the response.headers.
Example:
# ...
@app.route('/hello')
async def hello_world(request, response):
response.set_content_type('text/plain')
return 'Hello, World!'
# ...