WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 52911e4

Browse files
committed
add clear_session() to readme
1 parent 9d4405c commit 52911e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,16 @@ result = whoisit.domain('example.com')
363363
You can switch or clear proxies at any time. Note that setting or clearing a proxy will also
364364
reset the session. Proxies are supported by both the asynchonous and synchronous interfaces.
365365

366+
## Sessions
367+
368+
`whoisit` shared connection pools for all requests by default. This creates HTTP sessions that
369+
are shared when multiple connections are made to the same RDAP endpoints. If required, you can
370+
reset these sessions with the `clear_session()` method. For example:
371+
372+
```python
373+
whoisit.clear_session()
374+
```
375+
366376

367377
## Response data
368378

0 commit comments

Comments
 (0)