autoreload.start()
- def listen(self, port: int, address: str = "", **kwargs: Any) -> HTTPServer:
+ def listen(
+ self,
+ port: int,
+ address: Optional[str] = None,
+ *,
+ family: socket.AddressFamily = socket.AF_UNSPEC,
+ backlog: int = tornado.netutil._DEFAULT_BACKLOG,
+ flags: Optional[int] = None,
+ reuse_port: bool = False,
+ **kwargs: Any
+ ) -> HTTPServer:
"""Starts an HTTP server for this application on the given port.
- This is a convenience alias for creating an `.HTTPServer`
- object and calling its listen method. Keyword arguments not
- supported by `HTTPServer.listen <.TCPServer.listen>` are passed to the
- `.HTTPServer` constructor. For advanced uses
- (e.g. multi-process mode), do not use this method; create an
- `.HTTPServer` and call its
+ This is a convenience alias for creating an `.HTTPServer` object and
+ calling its listen method. Keyword arguments not supported by
+ `HTTPServer.listen <.TCPServer.listen>` are passed to the `.HTTPServer`
+ constructor. For advanced uses (e.g. multi-process mode), do not use
+ this method; create an `.HTTPServer` and call its
`.TCPServer.bind`/`.TCPServer.start` methods directly.
Note that after calling this method you still need to call