MCPcopy Index your code
hub / github.com/webpy/webpy / WSGIServer

Function WSGIServer

web/httpserver.py:167–177  ·  view source on GitHub ↗

Creates CherryPy WSGI server listening at `server_address` to serve `wsgi_app`. This function can be overwritten to customize the webserver or use a different webserver.

(server_address, wsgi_app)

Source from the content-addressed store, hash-verified

165
166
167def WSGIServer(server_address, wsgi_app):
168 """Creates CherryPy WSGI server listening at `server_address` to serve `wsgi_app`.
169 This function can be overwritten to customize the webserver or use a different webserver.
170 """
171 from cheroot import wsgi
172
173 server = wsgi.Server(server_address, wsgi_app, server_name="localhost")
174 server.nodelay = not sys.platform.startswith(
175 "java"
176 ) # TCP_NODELAY isn't supported on the JVM
177 return server
178
179
180class StaticApp(SimpleHTTPRequestHandler):

Callers 2

runbasicFunction · 0.70
runsimpleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected