wsgiref — WSGI Utilities and Reference Implementation — Python 3.16.0a0 documentation

docs.python.org

Tin mới

webbrowser — Convenient web-browser controller

urllib — URL handling modules

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Internet Protocols and Support

object.__getitem__

Changed in version 3.11: Support for __getitem__() method has been removed.

http.server: HTTP server and request handlers.

Create a new WSGI server listening on host and port, accepting connections for app. The return value is an instance of the supplied server_class, and will process requests using the specified handler_class. app must be a

warnings: Issue warning messages and control their disposition.

Wrap application and return a new WSGI application object. The returned application will forward all requests to the original application, and will check that both the application and the server invoking it are conformin

sys: Access system-specific parameters and functions.

CGI-based invocation via sys.stdin, sys.stdout, sys.stderr and os.environ. This is useful when you have a WSGI application and want to run it as a CGI script. Simply invoke CGIHandler().run(app), where app is the WSGI ap

os: Miscellaneous operating system interfaces.

CGI-based invocation via sys.stdin, sys.stdout, sys.stderr and os.environ. This is useful when you have a WSGI application and want to run it as a CGI script. Simply invoke CGIHandler().run(app), where app is the WSGI ap

io.BufferedIOBase.write

Similar to BaseCGIHandler, but designed for use with HTTP origin servers. If you are writing an HTTP server implementation, you will probably want to subclass this instead of BaseCGIHandler.