Tornado 4.5 Documentation
This can sometimes cause 200-500ms delays due to the interaction between Nagle’s algorithm and TCP de- layed ACKs. To reduce this delay (at the expense of possibly increasing bandwidth usage), call self Default is True. • ca_certs (string) – filename of CA certificates in PEM format, or None to use de- faults. See note below when used with curl_httpclient. • client_key (string) – Filename for client max_body_size argument. class tornado.curl_httpclient.CurlAsyncHTTPClient(io_loop, max_clients=10, de- faults=None) libcurl-based HTTP client. Example Code • A simple webspider shows how to fetch URLs0 码力 | 222 页 | 833.04 KB | 1 年前3Tornado 5.1 Documentation
This can sometimes cause 200-500ms delays due to the interaction between Nagle’s algorithm and TCP de- layed ACKs. To reduce this delay (at the expense of possibly increasing bandwidth usage), call self necessary in most applications. class tornado.stack_context.ExceptionStackContext(exception_handler, de- lay_warning=False) Specialization of StackContext for exception handling. The supplied exception_handler __del__ methods. This improves performance of calls to add_callback from the IOLoop thread, and slightly de- creases it for calls from other threads. tornado.iostream • memoryview objects are now permitted0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.0 Documentation
This can sometimes cause 200-500ms delays due to the interaction between Nagle’s algorithm and TCP de- layed ACKs. To reduce this delay (at the expense of possibly increasing bandwidth usage), call self body_producer: Callable[[Callable[[bytes], None]], Future[None]] = None, expect_100_continue: bool = False, de- compress_response: bool = None, ssl_options: Union[Dict[str, Any], ssl.SSLContext] = None) HTTP client __del__ methods. This improves performance of calls to add_callback from the IOLoop thread, and slightly de- creases it for calls from other threads. tornado.iostream • memoryview objects are now permitted0 码力 | 245 页 | 885.76 KB | 1 年前3Tornado 6.1 Documentation
This can sometimes cause 200-500ms delays due to the interaction between Nagle’s algorithm and TCP de- layed ACKs. To reduce this delay (at the expense of possibly increasing bandwidth usage), call self __del__ methods. This improves performance of calls to add_callback from the IOLoop thread, and slightly de- creases it for calls from other threads. tornado.iostream • memoryview objects are now permitted • tornado.websocket no longer supports the older “draft 76” version of the websocket protocol by de- fault, although this version can be enabled by overriding tornado.websocket.WebSocketHandler. allow_draft760 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.4 Documentation
parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path": All AsyncHTTPClient implementations support a defaults keyword argument, which can be used to set de- fault values for HTTPRequest attributes. For example: AsyncHTTPClient.configure( None, defaults0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.2 Documentation
parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path": All AsyncHTTPClient implementations support a defaults keyword argument, which can be used to set de- fault values for HTTPRequest attributes. For example: AsyncHTTPClient.configure( None, defaults0 码力 | 260 页 | 1.06 MB | 1 年前3Tornado 6.4 Documentation
parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path": All AsyncHTTPClient implementations support a defaults keyword argument, which can be used to set de- fault values for HTTPRequest attributes. For example: AsyncHTTPClient.configure( None, defaults0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path": All AsyncHTTPClient implementations support a defaults keyword argument, which can be used to set de- fault values for HTTPRequest attributes. For example: AsyncHTTPClient.configure( None, defaults0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.3 Documentation
parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path": All AsyncHTTPClient implementations support a defaults keyword argument, which can be used to set de- fault values for HTTPRequest attributes. For example: AsyncHTTPClient.configure( None, defaults0 码力 | 264 页 | 1.06 MB | 1 年前3Tornado 6.5 Documentation
parameter permanent which you can use to indicate that the redirection is considered permanent. The de- fault value of permanent is False, which generates a 302 Found HTTP response code and is appropriate example (note that a StaticFileHandler can be installed automatically with the static_path setting de- scribed below): application = web.Application([ (r"/static/(.*)", web.StaticFileHandler, {"path": All AsyncHTTPClient implementations support a defaults keyword argument, which can be used to set de- fault values for HTTPRequest attributes. For example: AsyncHTTPClient.configure( None, defaults0 码力 | 272 页 | 1.12 MB | 2 月前3
共 12 条
- 1
- 2