Better: use const std::shared_ptr<...>&

Because then there will be no extra increase in the reference count of the passed ResponseTask for the duration of this function.