Skip to content

Commit

Permalink
Merge pull request #1148 from libcpr/feature/public_get_shared_from_this
Browse files Browse the repository at this point in the history
Public cpr::Session::GetSharedPtrFromThis
  • Loading branch information
COM8 authored Nov 24, 2024
2 parents 9d9908c + cab8235 commit 1e77021
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 1e77021

Please sign in to comment.