Skip to content

Commit

Permalink
lib/curl/Request: add method GetEasy()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 9, 2023
1 parent 14ea2dd commit faab1fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/curl/Request.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,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);
Expand Down

0 comments on commit faab1fb

Please sign in to comment.