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
1 changed files with 9 additions and 0 deletions

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);