alex-testlab / mywebpy

forked from webpy / webpy. Add support continue process post in one function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mywebpy is a fork from webpy / webpy

Add following features:

  1. Use the custom wsgiserver to instead of cheroot.

  2. add a function:communicateWithConn to process continued post in one session

If you want to use web.py.web.py is a web framework for Python that is as simple as it is powerful.

Visit http://webpy.org/ for more information.

The latest stable release only supports Python >= 3.5. To install it, please run:

# For Python 3
python3 -m pip install mywebpy

Install it manually:

cd webpy/
python3 setup.py install

How to use communicateWithConn?:

import web
environ = web.ctx.environ
conn = environ['SERVER_CONN']
req = environ['SERVER_REQ']
message = '<http response data>'
result_data,result_req = conn.communicateWithConn(req,message,60)

About

forked from webpy / webpy. Add support continue process post in one function

License:Other


Languages

Language:Python 100.0%Language:Shell 0.0%