Creating a server requires several steps. First, you must create a request handler class by subclassing the
BaseRequestHandler
class and overriding its
handle()
method; this method will process incoming requests. Second, you must instantiate one of the server classes, passing it the server’s address and the request handler class. Finally, call the
handle_request()
or
serve_forever()
method of the server object to process one or many requests.
创建server的步骤
最新推荐文章于 2022-11-26 21:01:21 发布