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 9d9908c commit cab8235
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 @@ -292,7 +294,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 cab8235

Please sign in to comment.