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
A `cpr::Session` object by default is not thread safe, meaning you are not allowed to set multiple options (e.g. `SetBody(..)`, `SetHeader(..)`) in parallel.
257
+
Preparing and executing a web request needs to be done sequentially, but not single threaded.
258
+
259
+
To further exploit parallelism and take advantage of reusing `cpr::Session` objects take a look at the asynchronous `cpr::Session` interface (e.g. `cpr::AsyncResponse asyncResponse = session.GetAsync();`).
260
+
Internally `cpr::ThreadPool` gets used for this, handling all requests (Ref: [Asynchronous Requests](#asynchronous-requests)).
261
+
262
+
254
263
## HTTP Compression
255
264
256
265
HTTP compression is a capability that can improve transfer speed and bandwidth utilization between web servers and web clients.
0 commit comments