MCPcopy Index your code
hub / github.com/python/cpython / make_server

Function make_server

Lib/wsgiref/simple_server.py:145–151  ·  view source on GitHub ↗

Create a new WSGI server listening on `host` and `port` for `app`

(
    host, port, app, server_class=WSGIServer, handler_class=WSGIRequestHandler
)

Source from the content-addressed store, hash-verified

143
144
145def make_server(
146 host, port, app, server_class=WSGIServer, handler_class=WSGIRequestHandler
147):
148 """Create a new WSGI server listening on `host` and `port` for `app`"""
149 server = server_class((host, port), handler_class)
150 server.set_app(app)
151 return server
152
153
154def __getattr__(name):

Callers 3

run_amockFunction · 0.90
simple_server.pyFile · 0.70

Calls 1

set_appMethod · 0.80

Tested by 2

run_amockFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…