Home
last modified time | relevance | path

Searched full:wsgi (Results 1 – 25 of 90) sorted by relevance

1234

/external/python/cpython2/Doc/library/
Dwsgiref.rst1 :mod:`wsgiref` --- WSGI Utilities and Reference Implementation
5 :synopsis: WSGI Utilities and Reference Implementation.
12 The Web Server Gateway Interface (WSGI) is a standard interface between web
14 interface makes it easy to use an application that supports WSGI with a number
18 and corner case of the WSGI design. You don't need to understand every detail
19 of WSGI just to install a WSGI application or to write a web application using
22 :mod:`wsgiref` is a reference implementation of the WSGI specification that can
23 be used to add WSGI support to a web server or framework. It provides utilities
24 for manipulating WSGI environment variables and response headers, base classes
25 for implementing WSGI servers, a demo HTTP server that serves WSGI applications,
[all …]
/external/python/cpython3/Doc/library/
Dwsgiref.rst1 :mod:`wsgiref` --- WSGI Utilities and Reference Implementation
5 :synopsis: WSGI Utilities and Reference Implementation.
14 The Web Server Gateway Interface (WSGI) is a standard interface between web
16 interface makes it easy to use an application that supports WSGI with a number
20 and corner case of the WSGI design. You don't need to understand every detail
21 of WSGI just to install a WSGI application or to write a web application using
24 :mod:`wsgiref` is a reference implementation of the WSGI specification that can
25 be used to add WSGI support to a web server or framework. It provides utilities
26 for manipulating WSGI environment variables and response headers, base classes
27 for implementing WSGI servers, a demo HTTP server that serves WSGI applications,
[all …]
/external/python/cpython2/Lib/wsgiref/
Dvalidate.py6 Middleware to check for obedience to the WSGI specification.
18 SERVER_NAME, SERVER_PORT, wsgi.version, wsgi.input, wsgi.errors,
19 wsgi.multithread, wsgi.multiprocess, wsgi.run_once
31 - That wsgi.version is a tuple
33 - That wsgi.url_scheme is 'http' or 'https' (@@: is this too
48 - That wsgi.input has the methods read, readline, readlines, and
51 - That wsgi.errors has the methods flush, write, writelines
62 WSGI).
68 default content type, but WSGI does not).
78 * That wsgi.input is used properly:
[all …]
Dutil.py1 """Miscellaneous WSGI-related Utilities"""
36 """Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
45 url = environ['wsgi.url_scheme']+'://'
53 if environ['wsgi.url_scheme'] == 'https':
120 This adds various parameters required for WSGI, including HTTP_HOST,
122 and all of the wsgi.* variables. It only supplies default values,
125 This routine is intended to make it easier for unit tests of WSGI
127 be used by actual WSGI servers or applications, since the data is fake!
140 environ.setdefault('wsgi.version', (1,0))
141 environ.setdefault('wsgi.run_once', 0)
[all …]
Dhandlers.py43 """Manage the invocation of a WSGI application"""
102 env['wsgi.input'] = self.get_stdin()
103 env['wsgi.errors'] = self.get_stderr()
104 env['wsgi.version'] = self.wsgi_version
105 env['wsgi.run_once'] = self.wsgi_run_once
106 env['wsgi.url_scheme'] = self.get_scheme()
107 env['wsgi.multithread'] = self.wsgi_multithread
108 env['wsgi.multiprocess'] = self.wsgi_multiprocess
111 env['wsgi.file_wrapper'] = self.wsgi_file_wrapper
310 """WSGI mini-app to create error output
[all …]
D__init__.py1 """wsgiref -- a WSGI (PEP 333) Reference Library
11 * simple_server -- a simple BaseHTTPServer that supports WSGI
18 * cgi_gateway -- Run WSGI apps under CGI (pending a deployment standard)
20 * cgi_wrapper -- Run CGI apps under WSGI
Dsimple_server.py1 """BaseHTTPServer that implements the Python WSGI protocol (PEP 333, rev 1.21)
3 This is both an example of how WSGI can be implemented, and a basis for running
42 """BaseHTTPServer that implements the Python WSGI protocol"""
150 """Create a new WSGI server listening on `host` and `port` for `app`"""
/external/python/cpython3/Lib/wsgiref/
Dvalidate.py6 Middleware to check for obedience to the WSGI specification.
18 SERVER_NAME, SERVER_PORT, wsgi.version, wsgi.input, wsgi.errors,
19 wsgi.multithread, wsgi.multiprocess, wsgi.run_once
31 - That wsgi.version is a tuple
33 - That wsgi.url_scheme is 'http' or 'https' (@@: is this too
48 - That wsgi.input has the methods read, readline, readlines, and
51 - That wsgi.errors has the methods flush, write, writelines
62 WSGI).
68 default content type, but WSGI does not).
78 * That wsgi.input is used properly:
[all …]
Dutil.py1 """Miscellaneous WSGI-related Utilities"""
30 """Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
39 url = environ['wsgi.url_scheme']+'://'
47 if environ['wsgi.url_scheme'] == 'https':
114 This adds various parameters required for WSGI, including HTTP_HOST,
116 and all of the wsgi.* variables. It only supplies default values,
119 This routine is intended to make it easier for unit tests of WSGI
121 be used by actual WSGI servers or applications, since the data is fake!
134 environ.setdefault('wsgi.version', (1,0))
135 environ.setdefault('wsgi.run_once', 0)
[all …]
D__init__.py1 """wsgiref -- a WSGI (PEP 3333) Reference Library
11 * simple_server -- a simple BaseHTTPServer that supports WSGI
16 * types -- collection of WSGI-related types for static type checking
20 * cgi_gateway -- Run WSGI apps under CGI (pending a deployment standard)
22 * cgi_wrapper -- Run CGI apps under WSGI
Dhandlers.py95 """Manage the invocation of a WSGI application"""
158 env['wsgi.input'] = self.get_stdin()
159 env['wsgi.errors'] = self.get_stderr()
160 env['wsgi.version'] = self.wsgi_version
161 env['wsgi.run_once'] = self.wsgi_run_once
162 env['wsgi.url_scheme'] = self.get_scheme()
163 env['wsgi.multithread'] = self.wsgi_multithread
164 env['wsgi.multiprocess'] = self.wsgi_multiprocess
167 env['wsgi.file_wrapper'] = self.wsgi_file_wrapper
187 # Call close() on the iterable returned by the WSGI application
[all …]
Dtypes.py1 """WSGI-related types for static type checking"""
34 """WSGI input stream as defined in PEP 3333"""
41 """WSGI error stream as defined in PEP 3333"""
51 """WSGI file wrapper as defined in PEP 3333"""
Dsimple_server.py1 """BaseHTTPServer that implements the Python WSGI protocol (PEP 3333)
3 This is both an example of how WSGI can be implemented, and a basis for running
44 """BaseHTTPServer that implements the Python WSGI protocol"""
153 """Create a new WSGI server listening on `host` and `port` for `app`"""
/external/python/cpython2/Doc/howto/
Dwebservers.rst75 :ref:`WSGI <WSGI>`, a topic covered later in this document, it is possible to write
239 ``mod_python`` for deployment, but WSGI makes it possible to run WSGI programs
261 used for the deployment of WSGI applications.
283 following WSGI-application::
303 This is a simple WSGI application, but you need to install `flup
309 There is some documentation on `setting up Django with WSGI
310 <https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/>`_, most of
311 which can be reused for other WSGI-compliant frameworks and libraries.
321 deploy WSGI applications, mod_wsgi was started to directly embed WSGI applications
322 into the Apache web server. mod_wsgi is specifically designed to host WSGI
[all …]
/external/python/cpython3/Lib/test/
Dtest_wsgiref.py184 e["wsgi.input"].read()
374 ('wsgi.version', (1,0)),
375 ('wsgi.run_once', 0),
376 ('wsgi.multithread', 0),
377 ('wsgi.multiprocess', 0),
378 ('wsgi.input', BytesIO()),
379 ('wsgi.errors', StringIO()),
380 ('wsgi.url_scheme','http'),
386 self.checkCrossDefault('wsgi.url_scheme',"https",HTTPS="on")
387 self.checkCrossDefault('wsgi.url_scheme',"https",HTTPS="1")
[all …]
/external/python/cpython2/Lib/test/
Dtest_wsgiref.py224 ('wsgi.version', (1,0)),
225 ('wsgi.run_once', 0),
226 ('wsgi.multithread', 0),
227 ('wsgi.multiprocess', 0),
228 ('wsgi.input', StringIO("")),
229 ('wsgi.errors', StringIO()),
230 ('wsgi.url_scheme','http'),
236 self.checkCrossDefault('wsgi.url_scheme',"https",HTTPS="on")
237 self.checkCrossDefault('wsgi.url_scheme',"https",HTTPS="1")
238 self.checkCrossDefault('wsgi.url_scheme',"https",HTTPS="yes")
[all …]
/external/autotest/frontend/
Dfrontend.wsgi16 import django.core.handlers.wsgi
18 _application = django.core.handlers.wsgi.WSGIHandler()
/external/python/mako/examples/wsgi/
Drun_wsgi.py25 """serves requests using the WSGI callable interface."""
27 fp=environ["wsgi.input"], environ=environ, keep_blank_values=True
/external/autotest/server/cros/dynamic_suite/
Dfrontend_wrappers.py124 # work at all in wsgi environment (just emits logs spam). So, don't
125 # use it in wsgi.
/external/python/cpython2/Lib/
Dwsgiref.egg-info4 Summary: WSGI (PEP 333) Reference Library
/external/python/mako/doc/build/
Dusage.rst342 WSGI section in Common Framework Integrations
345 A sample WSGI application is included in the distribution in the
346 file ``examples/wsgi/run_wsgi.py``. This runner is set up to pull
348 includes a rudimental two-file layout. The WSGI runner acts as a
/external/python/setuptools/docs/
Dhistory.rst22 Subversion repositories. Ian's comments on the Web-SIG about WSGI
/external/bazelbuild-rules_python/examples/build_file_generation/
Dgazelle_python.yaml112 werkzeug.wsgi: Werkzeug
/external/python/setuptools/pkg_resources/tests/
Dtest_resources.py644 assert safe_name("WSGI Utils") == "WSGI-Utils"
645 assert safe_name("WSGI Utils") == "WSGI-Utils"
/external/python/cpython3/Lib/test/test_asyncio/
Dutils.py182 data = environ['wsgi.input'].read(min(size, 0x10000))
195 # Run the test WSGI server in a separate thread in order not to

1234