Skip to content

Commit

Permalink
Issue #107 Add get method for Request::OnCompleteHandler (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: jbaldwin <[email protected]>
  • Loading branch information
jbaldwin and jbaldwin authored Jul 20, 2020
1 parent 2e4c039 commit 5bc6e04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/lift/Request.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5bc6e04

Please sign in to comment.