Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Depetrol committed Oct 10, 2024
1 parent 485a1ee commit c7ef7ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/Python/src/lib/WebServer.lf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit c7ef7ee

Please sign in to comment.