summaryrefslogtreecommitdiff
path: root/examples/uwsgirouter5.py
blob: 85f4ed7f39cf728c7e2a662bd3c24a95f0c75974 (plain)
1
2
3
4
5
6
7
8
9
10

import uwsgi

fd = uwsgi.connect("127.0.0.1:3033")


def application(e, s):

    for part in uwsgi.send_message(fd, 0, 4, e, 30, e['wsgi.input'].fileno(), uwsgi.cl()):
        yield part