You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -97,10 +97,10 @@ making it easy to scrape data or interact with websites that use sophisticated a
97
97
98
98
**Example Code:**
99
99
100
-
```pycon
101
-
>>> import tls_requests
102
-
>>> r = tls_requests.get('https://www.coingecko.com/')
103
-
>>> r
100
+
```python
101
+
import tls_requests
102
+
r = tls_requests.get('https://www.coingecko.com/')
103
+
r
104
104
<Response [200]>
105
105
```
106
106
@@ -110,7 +110,7 @@ making it easy to scrape data or interact with websites that use sophisticated a
110
110
### **Enhanced Capabilities**
111
111
112
112
***Browser-like TLS Fingerprinting**: Enables secure and reliable browser-mimicking connections.
113
-
***Dynamic Header Synchronization**: Automatically extracts browser versions from `tls_identifier` and injects them into `User-Agent` and `sec-ch-ua` headers.
113
+
***Dynamic Header Synchronization**: Automatically extracts browser versions from `client_identifier` and injects them into `User-Agent` and `sec-ch-ua` headers.
114
114
***High-Performance Backend**: Built on a Go-based HTTP backend with **Protocol Racing** (Happy Eyeballs) enabled by default for faster connections.
115
115
***Synchronous & Asynchronous Support**: Seamlessly switch between synchronous and asynchronous requests.
116
116
***Protocol Support**: Fully compatible with HTTP/1.1, HTTP/2, and HTTP/3 (Alpha).
Copy file name to clipboardExpand all lines: docs/advanced/client.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,12 @@ The client supports all standard HTTP methods:
87
87
-`client.options(url, **kwargs)`
88
88
89
89
For more advanced scenarios like custom authentication or request hooks, refer to the dedicated guides in the [Advanced](../advanced/authentication.md) section.
90
+
91
+
***Merging Headers and Cookies:**
92
+
Request-level values will override client-level values if there is a conflict.
93
+
94
+
```python
95
+
client_headers = {'X-Auth': 'client'}
90
96
request_headers = {'X-Custom': 'request'}
91
97
with tls_requests.Client(headers=client_headers) as client:
0 commit comments