diff --git a/examples/Python/src/lib/WebServer.lf b/examples/Python/src/lib/WebServer.lf index 91d88d06..5a8df7a4 100644 --- a/examples/Python/src/lib/WebServer.lf +++ b/examples/Python/src/lib/WebServer.lf @@ -14,9 +14,11 @@ target Python { * * The `path` parameter is the path at which the server listens for HTTP POST requests. * - * The `request` output is a tuple of two values: the request ID and the request data. + * The `request` output is a list of two values: the request ID and the request data. If the + * request header indicates that the body is a JSON object, the request data is parsed into a python + * dictionary. Otherwise, the request body is forwarded as-is. * - * The `response` input is a tuple of two values: the request ID and the response data. Request ID + * The `response` input is a list of two values: the request ID and the response data. Request ID * is required to respond to the correct request. Use a physical connection to connect the * `response` input to avoid STP violations. *