From 5bc6e04fc44941534c4ada5c0d0473de8650f708 Mon Sep 17 00:00:00 2001 From: Josh Baldwin Date: Mon, 20 Jul 2020 13:45:25 -0600 Subject: [PATCH] Issue #107 Add get method for Request::OnCompleteHandler (#108) Co-authored-by: jbaldwin --- inc/lift/Request.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/lift/Request.hpp b/inc/lift/Request.hpp index 4022847..2ca7fd8 100644 --- a/inc/lift/Request.hpp +++ b/inc/lift/Request.hpp @@ -116,6 +116,11 @@ class Request { auto OnCompleteHandler( OnCompleteHandlerType on_complete_handler) -> void; + /** + * @return The current on complete handler callback. + */ + auto OnCompleteHandler() const -> const OnCompleteHandlerType& { return m_on_complete_handler; } + /** * Sets or unsets a transfer progress handler callback. Called periodically to update the * application of the status of this requests in terms of uploaded bytes and downloaded bytes.