Tornado 6.5 Documentation
parallel_fetch_many(urls): responses = await multi ([http_client.fetch(url) for url in urls]) # responses is a list of HTTPResponses in the same order async def parallel_fetch_dict(urls): responses = await await multi({url: http_client.fetch(url) for url in urls}) # responses is a dict {url: HTTPResponse} In decorated coroutines, it is possible to yield the list or dict directly: @gen.coroutine def pa queue, then calls task_done to decrement the counter once. Eventually, a worker fetches a page whose URLs have all been seen before, and there is also no work left in the queue. Thus that worker’s call to0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
server tornado.httpclient — Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado parallel_fetch_many(urls): responses = await multi ([http_client.fetch(url) for url in urls]) # responses is a list of HTTPResponses in the same order async def parallel_fetch_dict(urls): responses responses = await multi({url: http_client.fetch(url) for url in urls}) # responses is a dict {url: HTTPResponse} In decorated coroutines, it is possible to yield the list0 码力 | 437 页 | 405.14 KB | 2 月前3julia 1.10.10
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.4
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.6 Release Notes
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 2007 页 | 6.73 MB | 3 月前3julia 1.13.0 DEV
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
dictionary whose elements are all pairs of strings. These pairs are passed as headers when downloading URLs with protocols that supports them, such as HTTP/S. The timeout keyword argument specifies a timeout to let git decide. It will not use the git-aware transport for a local clone, but will use it for URLs which begin with file://. • checkout_branch: The name of the branch to checkout. If an empty string the list of all the fetch heads for repo, each represented as a FetchHead, including their names, URLs, and merge statuses. Examples julia> fetch_heads = LibGit2.fetchheads(repo); julia> fetch_heads[1]0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 12 条
- 1
- 2