Skip to content

Commit

Permalink
Public cpr::Session::GetSharedPtrFromThis
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Nov 24, 2024
1 parent 64d84ae commit 89f179c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/cpr/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ class Session : public std::enable_shared_from_this<Session> {

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

std::shared_ptr<Session> GetSharedPtrFromThis();

private:
// Interceptors should be able to call the private proceed() function
friend Interceptor;
Expand Down Expand Up @@ -288,7 +290,6 @@ class Session : public std::enable_shared_from_this<Session> {
**/
void prepareCommonDownload();
void prepareHeader();
std::shared_ptr<Session> GetSharedPtrFromThis();
CURLcode DoEasyPerform();
void prepareBodyPayloadOrMultipart() const;
/**
Expand Down

0 comments on commit 89f179c

Please sign in to comment.