Skip to content

Commit

Permalink
add doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Jul 21, 2023
1 parent 2481abc commit 9b61e7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions klongpy/web/sys_fn_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@ def eval_sys_fn_create_web_server(klong, x, y, z):
The web server is started at the address specifed by "x":
If "x" is an integer, then it is interpreted as a port in "localhost:<port>".
if "x" is a string, then it is interpreted as a host address "<host>:<port>"
If "x" is an integer, then it is interpreted as a port in "0.0.0.0:<port>".
if "x" is a string, then it is interpreted as a bind address "<bind>:<port>"
GET routes are specified in a dictionary provided by "y".
POST routes are specified in a dictionary provided by "z".
Handler callbacks are called with a dictionary of parameters:
GET handlers are provided a dictionary of query parameters.
POST handlers are provided a dictionary of post body parameters.
Example:
.py("klongpy.web")
Expand Down

0 comments on commit 9b61e7a

Please sign in to comment.