Skip to content

Commit 1e77021

Browse files
authored
Merge pull request #1148 from libcpr/feature/public_get_shared_from_this
Public cpr::Session::GetSharedPtrFromThis
2 parents 9d9908c + cab8235 commit 1e77021

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/cpr/session.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ class Session : public std::enable_shared_from_this<Session> {
226226

227227
void AddInterceptor(const std::shared_ptr<Interceptor>& pinterceptor);
228228

229+
std::shared_ptr<Session> GetSharedPtrFromThis();
230+
229231
private:
230232
// Interceptors should be able to call the private proceed() function
231233
friend Interceptor;
@@ -292,7 +294,6 @@ class Session : public std::enable_shared_from_this<Session> {
292294
**/
293295
void prepareCommonDownload();
294296
void prepareHeader();
295-
std::shared_ptr<Session> GetSharedPtrFromThis();
296297
CURLcode DoEasyPerform();
297298
void prepareBodyPayloadOrMultipart() const;
298299
/**

0 commit comments

Comments
 (0)