From 1ed422ae867fd05a851b717d1e0914a794e8a1bf Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 23 Jan 2021 23:29:36 +0100 Subject: [PATCH] Note about other formats See https://git.vvvvvvaria.org/decentral1se/xbotlib/issues/5. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51d3798..ca7656d 100644 --- a/README.md +++ b/README.md @@ -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