Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 699 Bytes

session_interface.rst

File metadata and controls

28 lines (20 loc) · 699 Bytes

Session Interface

The Session and AsyncSession are abstract classes that act as adapters to underlying HTTP client libraries. A session instance is used by Client or AsyncClient to perform all the HTTP requests to the Yandex.Disk API.

These interfaces can be implemented to add support for any HTTP library. For a concrete example, see the source code of any existing implementation (e.g. HTTPXSession).

Synchronous

yadisk.Session

yadisk.Response

Asynchronous

yadisk.AsyncSession

yadisk.AsyncResponse