File manager - Edit - /home/u478019808/domains/bestandroidphones.store/public_html/static/img/logo/reference.tar
Back
contrib/index.rst 0000644 00000000344 15025266253 0010054 0 ustar 00 Third-Party Modules =================== These modules implement various extra features, that may not be ready for prime time or that require optional third-party dependencies. .. toctree:: emscripten pyopenssl socks contrib/emscripten.rst 0000644 00000007446 15025266253 0011130 0 ustar 00 Pyodide, Emscripten, and PyScript ================================= From the Pyodide documentation, `Pyodide <https://pyodide.org>`_ is a Python distribution for the browser and Node.js based on WebAssembly and `Emscripten <https://emscripten.org/>`_. This technology also underpins the `PyScript framework <https://pyscript.net/>`_ and `Jupyterlite <https://jupyterlite.readthedocs.io/>`_, so should work in those environments too. Starting in version 2.2.0 urllib3 supports being used in a Pyodide runtime utilizing the `JavaScript fetch API <https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API>`_ or falling back on `XMLHttpRequest <https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest>`_ if the fetch API isn't available (such as when cross-origin isolation isn't active). This means you can use Python libraries to make HTTP requests from your browser! Because urllib3's Emscripten support is API-compatible, this means that libraries that depend on urllib3 may now be usable from Emscripten and Pyodide environments, too. .. warning:: **Support for Emscripten and Pyodide is experimental**. Report all bugs to the `urllib3 issue tracker <https://github.com/urllib3/urllib3/issues>`_. Currently only supports browsers, does not yet support running in Node.js. It's recommended to `run Pyodide in a Web Worker <https://pyodide.org/en/stable/usage/webworker.html#using-from-webworker>`_ in order to take full advantage of features like the fetch API which enables streaming of HTTP response bodies. Getting started --------------- Using urllib3 with Pyodide means you need to `get started with Pyodide first <https://pyodide.org/en/stable/usage/quickstart.html>`_. The Pyodide project provides a `useful online REPL <https://pyodide.org/en/stable/console.html>`_ to try in your browser without any setup or installation to test out the code examples below. urllib3's Emscripten support is automatically enabled if ``sys.platform`` is ``"emscripten"``, so no setup is required beyond installation and importing the module. You can install urllib3 in a Pyodide environment using micropip. Try using the following code in a Pyodide console or ``<script>`` tag: .. code-block:: python import micropip await micropip.install("urllib3") import urllib3 resp = urllib3.request("GET", "https://httpbin.org/anything") print(resp.status) # 200 print(resp.headers) # HTTPHeaderDict(...) print(resp.json()) # {"headers": {"Accept": "*/*", ...}, ...} Because `Requests <https://requests.readthedocs.io/en/latest/>`_ is built on urllib3, Requests also works out of the box: .. code-block:: python import micropip await micropip.install("requests") import requests resp = requests.request("GET", "https://httpbin.org/anything") print(resp.status_code) # 200 print(resp.headers) Features -------- Because we use JavaScript APIs under the hood, it's not possible to use all of urllib3 features. Features which are usable with Emscripten support are: * Requests over HTTP and HTTPS * Timeouts * Retries * Streaming (with Web Workers and Cross-Origin Isolation) * Redirects * Decompressing response bodies Features which don't work with Emscripten: * Proxies, both forwarding and tunneling * Customizing TLS and certificates (uses browsers' configuration) * Configuring low-level socket options or source address Streaming with Web Workers -------------------------- To access the fetch API and do HTTP response streaming with urllib3 you must be running the code within a Web Worker and set specific HTTP headers for the serving website to enable `Cross-Origin Isolation <https://developer.mozilla.org/en-US/docs/Web/API/crossOriginIsolated>`_. You can verify whether a given environment is cross-origin isolated by evaluating the global ``crossOriginIsolated`` JavaScript property. contrib/socks.rst 0000644 00000000174 15025266253 0010070 0 ustar 00 SOCKS Proxies ============= .. automodule:: urllib3.contrib.socks :members: :undoc-members: :show-inheritance: contrib/pyopenssl.rst 0000644 00000000170 15025266253 0010776 0 ustar 00 PyOpenSSL ========= .. automodule:: urllib3.contrib.pyopenssl :members: :undoc-members: :show-inheritance: urllib3.connectionpool.rst 0000644 00000000700 15025266253 0011705 0 ustar 00 Connection Pools ================ .. automodule:: urllib3.connectionpool .. autoclass:: urllib3.HTTPConnectionPool :members: :undoc-members: :show-inheritance: .. autoclass:: urllib3.HTTPSConnectionPool :members: :undoc-members: :show-inheritance: .. autoclass:: urllib3.connectionpool.ConnectionPool :members: :undoc-members: :show-inheritance: .. autofunction:: urllib3.connectionpool.connection_from_url urllib3.exceptions.rst 0000644 00000000271 15025266253 0011040 0 ustar 00 Exceptions and Warnings ======================= .. automodule:: urllib3.exceptions :members: :undoc-members: :show-inheritance: .. autofunction:: urllib3.disable_warnings index.rst 0000644 00000000342 15025266253 0006412 0 ustar 00 API Reference ============= .. toctree:: urllib3.request urllib3.poolmanager urllib3.connectionpool urllib3.connection urllib3.exceptions urllib3.response urllib3.fields urllib3.util contrib/index urllib3.request.rst 0000644 00000000107 15025266253 0010345 0 ustar 00 urllib3.request() ================= .. autofunction:: urllib3.request urllib3.fields.rst 0000644 00000000536 15025266253 0010131 0 ustar 00 Fields and Multipart Forms ========================== Fields ------ .. automodule:: urllib3.fields :members: :undoc-members: :show-inheritance: Multipart Forms --------------- .. autofunction:: urllib3.encode_multipart_formdata .. autofunction:: urllib3.filepost.choose_boundary .. autofunction:: urllib3.filepost.iter_field_objects urllib3.poolmanager.rst 0000644 00000000522 15025266253 0011162 0 ustar 00 Pool Manager ============ .. autoclass:: urllib3.PoolManager :members: :undoc-members: :show-inheritance: :inherited-members: .. autoclass:: urllib3.ProxyManager :members: :undoc-members: :show-inheritance: .. autoclass:: urllib3.poolmanager.PoolKey :members: :undoc-members: :show-inheritance: urllib3.util.rst 0000644 00000001053 15025266253 0007633 0 ustar 00 Utilities ========= Useful methods for working with :mod:`http.client`, completely decoupled from code specific to **urllib3**. At the very core, just like its predecessors, urllib3 is built on top of :mod:`http.client` -- the lowest level HTTP library included in the Python standard library. To aid the limited functionality of the :mod:`http.client` module, urllib3 provides various helper methods which are used with the higher level components but can also be used independently. .. automodule:: urllib3.util :members: :show-inheritance: urllib3.connection.rst 0000644 00000000540 15025266253 0011015 0 ustar 00 Connections =========== .. automodule:: urllib3.connection .. autoclass:: urllib3.connection.HTTPConnection :members: :exclude-members: putrequest :show-inheritance: .. autoclass:: urllib3.connection.HTTPSConnection :members: :show-inheritance: .. autoclass:: urllib3.connection.ProxyConfig :members: :show-inheritance: urllib3.response.rst 0000644 00000001424 15025266253 0010516 0 ustar 00 Response and Decoders ===================== Response -------- .. autoclass:: urllib3.response.BaseHTTPResponse :members: :undoc-members: :show-inheritance: .. autoclass:: urllib3.response.HTTPResponse :members: :undoc-members: :show-inheritance: :inherited-members: json .. autoattribute:: auto_close .. autoattribute:: status .. autoattribute:: headers Decoders -------- Decoder classes are used for transforming compressed HTTP bodies using the ``Content-Encoding`` into their uncompressed binary representation. .. autoclass:: urllib3.response.BrotliDecoder .. autoclass:: urllib3.response.DeflateDecoder .. autoclass:: urllib3.response.GzipDecoder .. autoclass:: urllib3.response.ZstdDecoder .. autoclass:: urllib3.response.MultiDecoder
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings