Tornado 6.4 Documentation
optional packages may be useful: - pycurl [http://pycurl.io/] is used by the optional tornado.curl_httpclient.Libcurl version 7.22 or higher is required. - pycares [https://pypi.org/project/pycares/] is an browser • HTTP servers and clients ☐ tornado.httpserver — Non-blocking HTTP server • tornado.httpclient — Asynchronous HTTP client ☐ tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response0 码力 | 432 页 | 402.58 KB | 2 年前3
Tornado 6.4 Documentation
optional packages may be useful: - pycurl [http://pycurl.io/] is used by the optional tornado.curl_httpclient.Libcurl version 7.22 or higher is required. - pycares [https://pypi.org/project/pycares/] is an browser • HTTP servers and clients ☐ tornado.httpserver — Non-blocking HTTP server • tornado.httpclient — Asynchronous HTTP client • tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response0 码力 | 432 页 | 402.58 KB | 2 年前3
Tornado 6.1 Documentation
The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient.Libcurl version 7.22 or higher is required. • Twisted may be used with the classes in tornado Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 245 页 | 904.24 KB | 2 年前3
Tornado 6.0 Documentation
The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • Twisted may be used with the classes in tornado Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 245 页 | 885.76 KB | 2 年前3
Tornado 6.2 Documentation
The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • pycares is an alternative non-blocking DNS resolver Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 260 页 | 1.06 MB | 2 年前3
Tornado 5.1 Documentation
the following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • Twisted may be used with the classes in tornado Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 243 页 | 895.80 KB | 2 年前3
Tornado 6.5 Documentationnewer. The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • pycares is an alternative non-blocking DNS resolver Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response.body And And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient import AsyncHTTPClient async def asynchronous_fetch(url): http_client = AsyncHTTPClient() response =0 码力 | 272 页 | 1.12 MB | 10 月前3
Tornado 6.4 Documentation
The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • pycares is an alternative non-blocking DNS resolver Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 268 页 | 1.09 MB | 2 年前3
Tornado 6.4 Documentation
The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • pycares is an alternative non-blocking DNS resolver Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 268 页 | 1.09 MB | 2 年前3
Tornado 6.4 Documentation
The following optional packages may be useful: • pycurl is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required. • pycares is an alternative non-blocking DNS resolver Examples Here is a sample synchronous function: from tornado.httpclient import HTTPClient def synchronous_fetch(url): http_client = HTTPClient() response = http_client.fetch(url) return response body And here is the same function rewritten asynchronously as a native coroutine: from tornado.httpclient importAsyncHTTPClient async def asynchronous_fetch(url): http_client =AsyncHTTPClient()0 码力 | 268 页 | 1.09 MB | 2 年前3
共 372 条
- 1
- 2
- 3
- 4
- 5
- 6
- 38
相关搜索词
Tornado 6.4IOLoopHTTPClientWebSocketasynciotornado.httpclienttornado.iolooptornado.tcpclienttornado.webtornado.testingTornadoPython Web FrameworkAsynchronous NetworkingHTTP ServerCoroutine Library异步非阻塞I/OWeb框架HTTP服务器和客户端协程Tornado框架异步网络库HTTP服务器WebSocket协议WSGI支持协程库异步HTTP客户端模块改进新功能非阻塞I/O长轮询事件循环高并发连接WSGI兼容性













