Skip to content

Commit 89f179c

Browse files
committed
Public cpr::Session::GetSharedPtrFromThis
1 parent 64d84ae commit 89f179c

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;
@@ -288,7 +290,6 @@ class Session : public std::enable_shared_from_this<Session> {
288290
**/
289291
void prepareCommonDownload();
290292
void prepareHeader();
291-
std::shared_ptr<Session> GetSharedPtrFromThis();
292293
CURLcode DoEasyPerform();
293294
void prepareBodyPayloadOrMultipart() const;
294295
/**

0 commit comments

Comments
 (0)