lib/curl/Request: add method GetEasy()

This commit is contained in:
Max Kellermann 2023-03-05 08:49:51 +01:00
parent bbf190fc42
commit 6ada2c9c3f

View File

@ -101,6 +101,15 @@ public:
return easy.Get();
}
/**
* Provide access to the underlying #CurlEasy instance, which
* allows the caller to configure options prior to submitting
* this request.
*/
auto &GetEasy() noexcept {
return easy;
}
template<typename T>
void SetOption(CURLoption option, T value) {
easy.SetOption(option, value);