File: stream.py

package info (click to toggle)
paste 3.5.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,216 kB
  • sloc: python: 18,932; javascript: 214; makefile: 17; sh: 7
file content (7 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
def stream():
    def app(environ, start_response):
        writer = start_response('200 OK', [('Content-type', 'text/html')])
        writer(b'te')
        writer(b'st')
        return [b'2']
    return app