From 6ada2c9c3f8660a086fc1e28d893dd94eb7a1ce0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 5 Mar 2023 08:49:51 +0100 Subject: [PATCH] lib/curl/Request: add method GetEasy() --- src/lib/curl/Request.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/curl/Request.hxx b/src/lib/curl/Request.hxx index 977c8117d..558d02856 100644 --- a/src/lib/curl/Request.hxx +++ b/src/lib/curl/Request.hxx @@ -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 void SetOption(CURLoption option, T value) { easy.SetOption(option, value);