Skip to content

Commit 6116316

Browse files
committed
docs: mention connection reuse capabilities in Python docs
1 parent 3553702 commit 6116316

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

impit-python/python/impit/impit.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ class Response:
370370
class Client:
371371
"""Synchronous HTTP client with browser impersonation capabilities.
372372
373+
.. note::
374+
You can reuse the :class:`Client` instance to make multiple requests.
375+
376+
All requests made by the same client will share the same configuration, resources (e.g., cookie jar and connection pool), and other settings.
377+
373378
Args:
374379
browser: Browser to impersonate (`"chrome"` or `"firefox"`).
375380
@@ -696,6 +701,11 @@ class Client:
696701
class AsyncClient:
697702
"""Asynchronous HTTP client with browser impersonation capabilities.
698703
704+
.. note::
705+
You can reuse the :class:`Client` instance to make multiple requests.
706+
707+
All requests made by the same client will share the same configuration, resources (e.g., cookie jar and connection pool), and other settings.
708+
699709
Args:
700710
browser: Browser to impersonate (`"chrome"` or `"firefox"`).
701711

0 commit comments

Comments
 (0)