Glossary

`def index(): return "..."`

a standard Python function that returns a string. Flask sends that string back as the response body. Returning a string causes Flask to set the `Content-Type` header to `text/html`, so the browser renders it as HTML (or plain text, depending on the content).

Learn More

Related Terms