Note about other formats

See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/5.
This commit is contained in:
Luke Murphy 2021-01-23 23:29:36 +01:00
parent 73e1ec87b8
commit 1ed422ae86
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 1 deletions

View File

@ -342,7 +342,9 @@ def serve(self, request):
```
Please note the use of the `return` keyword here. The `serve` function must
return a response that will be passed to the web server.
return a response that will be passed to the web server. This function can
return any content type that you might find on the web (e.g. HTML, XML, JSON)
but you must specify the `content_type=...` keyword argument for `respond`.
If you want to pass data from your `direct`/`group` functions to the `serve`
function, you'll need to make use of [some type of persistent