3 ms·
Problem is, it's not entirely clear that an http client library needs external state. (And for example, mint does not).
by dnautics 5y ago
Problem is, it's not entirely clear that an http client library needs external state. (And for example, mint does not).
- masklinn 5y agoPersistent connections? Cookies? Response cache? Conditional requests?
- chii 5y agodepends on how low level you want the library to be - for example, cURL doesn't have state.
- masklinn 5y agoThat is incorrect. Libcurl has a connection cache for persistent connections enabled by default. It also supports automatically recording and resending cookies (including optionally storing those cookies to disk for cross-session usage), though that is not enabled by default. In 2020, the CLI cURL utility also added support for conditional requests, although that is not native to the underlying libcurl.