Pyjoyment 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Pyjo/App/ASGI.py +735 -0
- Pyjo/App/CGI.py +773 -0
- Pyjo/App/FastCGI.py +631 -0
- Pyjo/App/Lambda.py +987 -0
- Pyjo/App/WSGI.py +427 -0
- Pyjo/App/__init__.py +409 -0
- Pyjo/Asset/File.py +377 -0
- Pyjo/Asset/Memory.py +235 -0
- Pyjo/Asset/__init__.py +200 -0
- Pyjo/Base.py +215 -0
- Pyjo/Cache.py +119 -0
- Pyjo/Collection.py +570 -0
- Pyjo/Content/MultiPart.py +325 -0
- Pyjo/Content/Single.py +193 -0
- Pyjo/Content/__init__.py +806 -0
- Pyjo/Cookie/Request.py +90 -0
- Pyjo/Cookie/Response.py +294 -0
- Pyjo/Cookie/__init__.py +143 -0
- Pyjo/DOM/CSS.py +1019 -0
- Pyjo/DOM/HTML.py +550 -0
- Pyjo/DOM/__init__.py +1329 -0
- Pyjo/Date.py +294 -0
- Pyjo/EventEmitter.py +522 -0
- Pyjo/Exception.py +494 -0
- Pyjo/File.py +959 -0
- Pyjo/GetOpt.py +605 -0
- Pyjo/Headers.py +760 -0
- Pyjo/HelloWorld.py +77 -0
- Pyjo/Home.py +109 -0
- Pyjo/IOLoop/ChildProcess.py +591 -0
- Pyjo/IOLoop/Client.py +736 -0
- Pyjo/IOLoop/Datagram.py +982 -0
- Pyjo/IOLoop/Messages.py +664 -0
- Pyjo/IOLoop/Server.py +458 -0
- Pyjo/IOLoop/Stdio.py +446 -0
- Pyjo/IOLoop/Stream.py +644 -0
- Pyjo/IOLoop/Subprocess.py +419 -0
- Pyjo/IOLoop/TLS.py +360 -0
- Pyjo/IOLoop/__init__.py +1036 -0
- Pyjo/IOLoop/certs/README.md +41 -0
- Pyjo/IOLoop/certs/ca.crt +20 -0
- Pyjo/IOLoop/certs/server.crt +21 -0
- Pyjo/IOLoop/certs/server.key +28 -0
- Pyjo/JSON/Pointer.py +135 -0
- Pyjo/JSON/RPC.py +772 -0
- Pyjo/JSON/Schema.py +2506 -0
- Pyjo/JSON/__init__.py +573 -0
- Pyjo/Loader.py +342 -0
- Pyjo/Log.py +723 -0
- Pyjo/Message/Request.py +725 -0
- Pyjo/Message/Response.py +476 -0
- Pyjo/Message/__init__.py +830 -0
- Pyjo/Parameters.py +472 -0
- Pyjo/Path.py +419 -0
- Pyjo/Promise.py +894 -0
- Pyjo/Prove.py +1305 -0
- Pyjo/Reactor/Asyncio.py +854 -0
- Pyjo/Reactor/Poll.py +439 -0
- Pyjo/Reactor/__init__.py +525 -0
- Pyjo/SSE.py +119 -0
- Pyjo/Server/ASGI.py +486 -0
- Pyjo/Server/CGI.py +259 -0
- Pyjo/Server/Daemon.py +1007 -0
- Pyjo/Server/FastCGI.py +517 -0
- Pyjo/Server/Hot/__init__.py +687 -0
- Pyjo/Server/Hot/__main__.py +5 -0
- Pyjo/Server/Lambda.py +641 -0
- Pyjo/Server/Prefork.py +917 -0
- Pyjo/Server/Prethread.py +394 -0
- Pyjo/Server/Reload/Backend/Poll.py +114 -0
- Pyjo/Server/Reload/Backend/__init__.py +126 -0
- Pyjo/Server/Reload/__init__.py +482 -0
- Pyjo/Server/Reload/__main__.py +5 -0
- Pyjo/Server/Stdio.py +228 -0
- Pyjo/Server/WSGI.py +349 -0
- Pyjo/Server/__init__.py +396 -0
- Pyjo/String/Bytes.py +532 -0
- Pyjo/String/HTML.py +210 -0
- Pyjo/String/Mixin.py +333 -0
- Pyjo/String/Template.py +470 -0
- Pyjo/String/Unicode.py +553 -0
- Pyjo/String/__init__.py +0 -0
- Pyjo/TOML.py +232 -0
- Pyjo/Template.py +1290 -0
- Pyjo/Test/Pyjo.py +1454 -0
- Pyjo/Test/__init__.py +1233 -0
- Pyjo/Test/pytest_plugin.py +305 -0
- Pyjo/Transaction/HTTP.py +374 -0
- Pyjo/Transaction/WebSocket.py +709 -0
- Pyjo/Transaction/__init__.py +429 -0
- Pyjo/URL/Template.py +459 -0
- Pyjo/URL/__init__.py +651 -0
- Pyjo/Upload.py +139 -0
- Pyjo/UserAgent/CookieJar.py +391 -0
- Pyjo/UserAgent/Proxy.py +138 -0
- Pyjo/UserAgent/Server.py +239 -0
- Pyjo/UserAgent/Transactor.py +766 -0
- Pyjo/UserAgent/__init__.py +1243 -0
- Pyjo/Util.py +3567 -0
- Pyjo/WebSocket.py +332 -0
- Pyjo/YAML.py +1167 -0
- Pyjo/__init__.py +441 -0
- Pyjo/__main__.py +35 -0
- Pyjo/py.typed +0 -0
- Pyjoyment/Command/Author/__init__.py +20 -0
- Pyjoyment/Command/Author/generate/__init__.py +106 -0
- Pyjoyment/Command/Author/generate/app.py +299 -0
- Pyjoyment/Command/Author/generate/dockerfile.py +281 -0
- Pyjoyment/Command/Author/generate/kubernetes.py +514 -0
- Pyjoyment/Command/Author/generate/lambda_zip.py +372 -0
- Pyjoyment/Command/Author/generate/lite_app.py +113 -0
- Pyjoyment/Command/Author/generate/plugin.py +267 -0
- Pyjoyment/Command/Author/generate/pyproject.py +123 -0
- Pyjoyment/Command/Author/inflate.py +101 -0
- Pyjoyment/Command/__init__.py +332 -0
- Pyjoyment/Command/asgi.py +92 -0
- Pyjoyment/Command/cgi.py +90 -0
- Pyjoyment/Command/daemon.py +160 -0
- Pyjoyment/Command/eval.py +128 -0
- Pyjoyment/Command/fastcgi.py +99 -0
- Pyjoyment/Command/get.py +305 -0
- Pyjoyment/Command/lambda.py +117 -0
- Pyjoyment/Command/prefork.py +181 -0
- Pyjoyment/Command/prethread.py +126 -0
- Pyjoyment/Command/routes.py +133 -0
- Pyjoyment/Command/stdio.py +92 -0
- Pyjoyment/Command/version.py +141 -0
- Pyjoyment/Command/wsgi.py +93 -0
- Pyjoyment/Commands.py +546 -0
- Pyjoyment/Controller.py +1307 -0
- Pyjoyment/HelloWorld.py +56 -0
- Pyjoyment/Lite.py +494 -0
- Pyjoyment/Plugin/AllowedHosts.py +205 -0
- Pyjoyment/Plugin/Config.py +248 -0
- Pyjoyment/Plugin/DefaultHelpers.py +1202 -0
- Pyjoyment/Plugin/EPLRenderer.py +134 -0
- Pyjoyment/Plugin/EPRenderer.py +212 -0
- Pyjoyment/Plugin/HeaderCondition.py +98 -0
- Pyjoyment/Plugin/Health.py +325 -0
- Pyjoyment/Plugin/JSONConfig.py +172 -0
- Pyjoyment/Plugin/Mount.py +223 -0
- Pyjoyment/Plugin/PyRenderer.py +209 -0
- Pyjoyment/Plugin/TOMLConfig.py +141 -0
- Pyjoyment/Plugin/TagHelpers.py +959 -0
- Pyjoyment/Plugin/YAMLConfig.py +178 -0
- Pyjoyment/Plugin/__init__.py +80 -0
- Pyjoyment/Plugins.py +215 -0
- Pyjoyment/Renderer.py +673 -0
- Pyjoyment/Routes/Match.py +251 -0
- Pyjoyment/Routes/Pattern.py +443 -0
- Pyjoyment/Routes/Route.py +827 -0
- Pyjoyment/Routes/__init__.py +419 -0
- Pyjoyment/Sessions.py +255 -0
- Pyjoyment/Static.py +421 -0
- Pyjoyment/Types.py +238 -0
- Pyjoyment/Validator/Validation.py +395 -0
- Pyjoyment/Validator/__init__.py +304 -0
- Pyjoyment/__init__.py +1083 -0
- Pyjoyment/__main__.py +5 -0
- Pyjoyment/py.typed +0 -0
- Pyjoyment/resources/public/favicon.ico +0 -0
- Pyjoyment/resources/public/favicon.svg +345 -0
- Pyjoyment/resources/public/pyjo/bootstrap/LICENSE +21 -0
- Pyjoyment/resources/public/pyjo/bootstrap/bootstrap.bundle.min.js.map +1 -0
- Pyjoyment/resources/public/pyjo/bootstrap/bootstrap.css +6 -0
- Pyjoyment/resources/public/pyjo/bootstrap/bootstrap.js +7 -0
- Pyjoyment/resources/public/pyjo/bootstrap/bootstrap.min.css.map +1 -0
- Pyjoyment/resources/public/pyjo/failunicat.png +0 -0
- Pyjoyment/resources/public/pyjo/failunicat.svg +50 -0
- Pyjoyment/resources/public/pyjo/highlight.js/LICENSE +29 -0
- Pyjoyment/resources/public/pyjo/highlight.js/highlight-mojo-dark.css +56 -0
- Pyjoyment/resources/public/pyjo/highlight.js/highlight.min.js +1262 -0
- Pyjoyment/resources/public/pyjo/highlight.js/pyjoyment.min.js +1 -0
- Pyjoyment/resources/public/pyjo/logo-black-4x.png +0 -0
- Pyjoyment/resources/public/pyjo/logo-black-4x.svg +346 -0
- Pyjoyment/resources/public/pyjo/logo-white-2x.png +0 -0
- Pyjoyment/resources/public/pyjo/logo-white-2x.svg +346 -0
- Pyjoyment/resources/public/pyjo/logo-white-4x.png +0 -0
- Pyjoyment/resources/public/pyjo/logo-white-4x.svg +346 -0
- Pyjoyment/resources/public/pyjo/logo-white.png +0 -0
- Pyjoyment/resources/public/pyjo/logo-white.svg +346 -0
- Pyjoyment/resources/public/pyjo/logo.png +0 -0
- Pyjoyment/resources/public/pyjo/logo.svg +346 -0
- Pyjoyment/resources/public/pyjo/notfound.png +0 -0
- Pyjoyment/resources/public/pyjo/notfound.svg +3 -0
- Pyjoyment/resources/public/pyjo/nounicat.png +0 -0
- Pyjoyment/resources/public/pyjo/nounicat.svg +5 -0
- Pyjoyment/resources/public/pyjo/pinstripe-dark.png +0 -0
- Pyjoyment/resources/public/pyjo/pinstripe-dark.svg +4 -0
- Pyjoyment/resources/public/pyjo/pinstripe-light.png +0 -0
- Pyjoyment/resources/public/pyjo/pinstripe-light.svg +4 -0
- Pyjoyment/resources/public/pyjo/pyjo.css +204 -0
- Pyjoyment/resources/templates/pyjo/debug.html.ep +346 -0
- Pyjoyment/resources/templates/pyjo/exception.html.ep +32 -0
- Pyjoyment/resources/templates/pyjo/not_found.html.ep +45 -0
- pyjoyment-0.1.0.dist-info/METADATA +376 -0
- pyjoyment-0.1.0.dist-info/RECORD +200 -0
- pyjoyment-0.1.0.dist-info/WHEEL +4 -0
- pyjoyment-0.1.0.dist-info/entry_points.txt +8 -0
- pyjoyment-0.1.0.dist-info/licenses/LICENSE +201 -0
Pyjo/Server/CGI.py
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Pyjo.Server.CGI - CGI server
|
|
3
|
+
============================
|
|
4
|
+
::
|
|
5
|
+
|
|
6
|
+
from Pyjo.Server.CGI import CGI
|
|
7
|
+
|
|
8
|
+
cgi = CGI()
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@cgi.unsubscribe('request').on('request')
|
|
12
|
+
def request(cgi, tx):
|
|
13
|
+
# Request
|
|
14
|
+
method = tx.req.method
|
|
15
|
+
path = tx.req.url.path
|
|
16
|
+
|
|
17
|
+
# Response
|
|
18
|
+
tx.res.code = 200
|
|
19
|
+
tx.res.headers.content_type = 'text/plain'
|
|
20
|
+
tx.res.body = f'{method} request for {path}!'.encode()
|
|
21
|
+
|
|
22
|
+
# Resume transaction
|
|
23
|
+
tx.resume()
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
cgi.run()
|
|
27
|
+
|
|
28
|
+
# Or import the module, as in Google Python Style Guide
|
|
29
|
+
|
|
30
|
+
import Pyjo.Server.CGI
|
|
31
|
+
|
|
32
|
+
cgi = Pyjo.Server.CGI.new()
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@cgi.unsubscribe('request').on('request')
|
|
36
|
+
def request(cgi, tx):
|
|
37
|
+
# Request
|
|
38
|
+
method = tx.req.method
|
|
39
|
+
path = tx.req.url.path
|
|
40
|
+
|
|
41
|
+
# Response
|
|
42
|
+
tx.res.code = 200
|
|
43
|
+
tx.res.headers.content_type = 'text/plain'
|
|
44
|
+
tx.res.body = f'{method} request for {path}!'.encode()
|
|
45
|
+
|
|
46
|
+
# Resume transaction
|
|
47
|
+
tx.resume()
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
cgi.run()
|
|
51
|
+
|
|
52
|
+
:mod:`Pyjo.Server.CGI` is a simple and portable implementation of
|
|
53
|
+
:rfc:`3875`.
|
|
54
|
+
|
|
55
|
+
The response can come later, as the event loop of :mod:`Pyjo.IOLoop` runs
|
|
56
|
+
while the script waits for it, and the script writes it once the application
|
|
57
|
+
resumes the transaction. The body of chunks is written without the chunked
|
|
58
|
+
transfer encoding, as a script returns no header that relates to the
|
|
59
|
+
connection of the client, which the web server makes, except in non-parsed
|
|
60
|
+
header mode, whose response goes to the client as it is. The request body is
|
|
61
|
+
read with the length of ``CONTENT_LENGTH``, so a chunked request, which has
|
|
62
|
+
none, reaches the application without its body.
|
|
63
|
+
|
|
64
|
+
CGI servers
|
|
65
|
+
-----------
|
|
66
|
+
|
|
67
|
+
* uWSGI with its plugin ``cgi``: a chunked request is not answered.
|
|
68
|
+
* :mod:`http.server` with ``--cgi``, up to Python 3.14: it sends the output of
|
|
69
|
+
the script as it is, after a status line ``200`` and headers of its own,
|
|
70
|
+
so the status of the response is lost, and the ``Status`` header and the
|
|
71
|
+
``Date`` header of the script reach the client.
|
|
72
|
+
|
|
73
|
+
Events
|
|
74
|
+
------
|
|
75
|
+
|
|
76
|
+
:mod:`Pyjo.Server.CGI` inherits all events from :mod:`Pyjo.Server`.
|
|
77
|
+
|
|
78
|
+
See also
|
|
79
|
+
--------
|
|
80
|
+
|
|
81
|
+
:mod:`Pyjoyment`, https://mojolicious.org.
|
|
82
|
+
|
|
83
|
+
Ported from `Mojo::Server::CGI <https://github.com/mojolicious/mojo/blob/v9.49/lib/Mojo/Server/CGI.pm>`_
|
|
84
|
+
of Mojolicious 9.49.
|
|
85
|
+
|
|
86
|
+
Classes
|
|
87
|
+
-------
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
import Pyjo.IOLoop
|
|
91
|
+
import Pyjo.Message.Response
|
|
92
|
+
import Pyjo.Server
|
|
93
|
+
|
|
94
|
+
import os
|
|
95
|
+
import re
|
|
96
|
+
import sys
|
|
97
|
+
|
|
98
|
+
from typing import Any, BinaryIO, cast
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class Pyjo_Server_CGI(Pyjo.Server.object):
|
|
102
|
+
"""
|
|
103
|
+
:mod:`Pyjo.Server.CGI` inherits all methods from :mod:`Pyjo.Server` and
|
|
104
|
+
implements the following new ones.
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
def __init__(self, *, nph: bool | None = None, **kwargs: Any) -> None:
|
|
108
|
+
"""::
|
|
109
|
+
|
|
110
|
+
cgi = Pyjo.Server.CGI.new()
|
|
111
|
+
cgi = Pyjo.Server.CGI.new(nph=True)
|
|
112
|
+
|
|
113
|
+
Construct a new :mod:`Pyjo.Server.CGI` object.
|
|
114
|
+
"""
|
|
115
|
+
super().__init__(**kwargs)
|
|
116
|
+
|
|
117
|
+
self.nph = nph
|
|
118
|
+
"""::
|
|
119
|
+
|
|
120
|
+
boolean = cgi.nph
|
|
121
|
+
cgi.nph = boolean
|
|
122
|
+
|
|
123
|
+
Activate non-parsed header mode.
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
def run(self) -> int | None:
|
|
127
|
+
"""::
|
|
128
|
+
|
|
129
|
+
status = cgi.run()
|
|
130
|
+
|
|
131
|
+
Run CGI.
|
|
132
|
+
"""
|
|
133
|
+
self.app.server(self)
|
|
134
|
+
try:
|
|
135
|
+
return self._run()
|
|
136
|
+
|
|
137
|
+
# Not in Mojolicious: the end of the server, as it serves one request
|
|
138
|
+
finally:
|
|
139
|
+
self._server_stopped()
|
|
140
|
+
|
|
141
|
+
def _run(self) -> int | None:
|
|
142
|
+
tx = self.build_tx()
|
|
143
|
+
req = tx.req.parse(dict(os.environ))
|
|
144
|
+
tx.local_port = int(port) if (port := os.environ.get('SERVER_PORT')) else None
|
|
145
|
+
tx.remote_address = os.environ.get('REMOTE_ADDR')
|
|
146
|
+
|
|
147
|
+
# Request body (may block if we try to read too much)
|
|
148
|
+
stdin = cast(BinaryIO, sys.stdin.buffer)
|
|
149
|
+
length = int(req.headers.content_length or 0)
|
|
150
|
+
while not req.is_finished:
|
|
151
|
+
chunk = stdin.read(length if length and length < 131072 else 131072)
|
|
152
|
+
if not chunk:
|
|
153
|
+
break
|
|
154
|
+
req.parse(chunk)
|
|
155
|
+
length -= len(chunk)
|
|
156
|
+
if length <= 0:
|
|
157
|
+
break
|
|
158
|
+
|
|
159
|
+
# Unlike Mojolicious: the response once the application resumes the transaction, as the daemon writes it, as the
|
|
160
|
+
# event loop runs while the script waits, where Mojo writes the default response of a later one
|
|
161
|
+
resumed: list[Any] = []
|
|
162
|
+
tx.on('resume', resumed.append)
|
|
163
|
+
self.emit('request', tx)
|
|
164
|
+
while not resumed:
|
|
165
|
+
Pyjo.IOLoop.one_tick()
|
|
166
|
+
|
|
167
|
+
# Response start-line
|
|
168
|
+
res = tx.res.fix_headers()
|
|
169
|
+
if self.nph and not _write(res, 'get_start_line_chunk'):
|
|
170
|
+
return None
|
|
171
|
+
|
|
172
|
+
# Response headers
|
|
173
|
+
code = res.code or 404
|
|
174
|
+
msg = res.message or res.default_message()
|
|
175
|
+
if not self.nph:
|
|
176
|
+
res.headers.status = f'{code} {msg}'
|
|
177
|
+
|
|
178
|
+
# Unlike Mojolicious: the body of chunks without the chunked transfer encoding, as a script returns no header
|
|
179
|
+
# that relates to the connection of the client (RFC 3875 6.3.4), which the web server writes, where Mojo writes
|
|
180
|
+
# the chunks with their sizes
|
|
181
|
+
decode = None
|
|
182
|
+
if not self.nph and res.content.is_chunked:
|
|
183
|
+
res.headers.remove('Transfer-Encoding')
|
|
184
|
+
decode = _Chunks()
|
|
185
|
+
if not _write(res, 'get_header_chunk'):
|
|
186
|
+
return None
|
|
187
|
+
|
|
188
|
+
# Response body
|
|
189
|
+
if not tx.is_empty and not _write(res, 'get_body_chunk', decode):
|
|
190
|
+
return None
|
|
191
|
+
|
|
192
|
+
# Finish transaction
|
|
193
|
+
tx.closed()
|
|
194
|
+
|
|
195
|
+
return res.code
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def _write(res: Pyjo.Message.Response.object, method: str, decode: '_Chunks | None' = None) -> bool:
|
|
199
|
+
# Text written to sys.stdout before goes first
|
|
200
|
+
sys.stdout.flush()
|
|
201
|
+
stdout = cast(BinaryIO, sys.stdout.buffer)
|
|
202
|
+
offset = 0
|
|
203
|
+
while True:
|
|
204
|
+
# Not in Mojolicious: no chunk yet, so the event loop runs once before it tries again, where Mojo sleeps for a
|
|
205
|
+
# second
|
|
206
|
+
chunk: bytes | None = getattr(res, method)(offset)
|
|
207
|
+
if chunk is None:
|
|
208
|
+
Pyjo.IOLoop.one_tick()
|
|
209
|
+
continue
|
|
210
|
+
|
|
211
|
+
# End of part
|
|
212
|
+
if not (length := len(chunk)):
|
|
213
|
+
break
|
|
214
|
+
|
|
215
|
+
# Make sure we can still write
|
|
216
|
+
offset += length
|
|
217
|
+
if stdout.closed:
|
|
218
|
+
return False
|
|
219
|
+
# Not in Mojolicious: the chunks without their sizes
|
|
220
|
+
if decode is not None and not len(chunk := decode(chunk)):
|
|
221
|
+
continue
|
|
222
|
+
stdout.write(chunk)
|
|
223
|
+
stdout.flush()
|
|
224
|
+
|
|
225
|
+
return True
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# Not in Mojolicious: the body of the chunks of a dynamic response, without the sizes that write_chunk of Pyjo.Content
|
|
229
|
+
# writes before them
|
|
230
|
+
class _Chunks:
|
|
231
|
+
def __init__(self) -> None:
|
|
232
|
+
self.buffer = b''
|
|
233
|
+
self.left = 0
|
|
234
|
+
|
|
235
|
+
def __call__(self, chunk: bytes) -> bytes:
|
|
236
|
+
self.buffer += chunk
|
|
237
|
+
body = b''
|
|
238
|
+
while len(self.buffer):
|
|
239
|
+
if self.left:
|
|
240
|
+
part = self.buffer[: self.left]
|
|
241
|
+
body += part
|
|
242
|
+
self.buffer = self.buffer[len(part) :]
|
|
243
|
+
self.left -= len(part)
|
|
244
|
+
continue
|
|
245
|
+
|
|
246
|
+
# The size of the next chunk, after the end of the one before, and none at the end
|
|
247
|
+
if (m := re.match(rb'(?:\r\n)?([0-9a-fA-F]+)\r\n', self.buffer)) is None:
|
|
248
|
+
break
|
|
249
|
+
self.buffer = self.buffer[m.end() :]
|
|
250
|
+
if not (left := int(m[1], 16)):
|
|
251
|
+
self.buffer = b''
|
|
252
|
+
break
|
|
253
|
+
self.left = left
|
|
254
|
+
return body
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
new = Pyjo_Server_CGI.new
|
|
258
|
+
object = Pyjo_Server_CGI
|
|
259
|
+
CGI = Pyjo_Server_CGI
|