Skip to content

Commit

Permalink
Add import example in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadmaster committed May 17, 2021
1 parent d9e4056 commit 33b8b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ It's like any other transport adapter. Just pass the IP address that
connections to the given URL prefix should use.

```
from adapters import ForcedIPHTTPSAdapter
session = requests.Session()
session.mount("https://example.com", ForcedIPHTTPSAdapter(dest_ip='1.2.3.4'))
response = session.get(
Expand Down

0 comments on commit 33b8b57

Please sign in to comment.