Closed gsquire closed 4 years ago
Constants are validated against system libcurl which is dependent on versions. To add an exclusion configuration for a new constant, you can add a new match here:
In this case, CURLOPT_MAXAGE_CONN
was added in version 7.65.0. After updating this the tests should pass.
Thanks for the PR! Can we also expose this in the Rust interface? Something like this:
impl Easy2 {
pub fn maxage_conn(&mut self, maxage: Duration) -> Result<(), Error> {
// todo
}
}
See Easy2::tcp_keepidle
for an example of how to set a curl option that takes a Duration
:
We also more-or-less copy-paste every function into Easy
to keep Easy2
and Easy
in sync.
This would ideally be added to support the feature addition mentioned in https://github.com/sagebind/isahc/issues/93.
I found the constant listed here.