summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp (renamed from src/request.cpp)8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/request.cpp b/src/connection.cpp
index 1e91504..b7fe886 100644
--- a/src/request.cpp
+++ b/src/connection.cpp
@@ -14,23 +14,23 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "request.hpp"
+#include "connection.hpp"
namespace mastodonpp
{
-Request::Request(Instance &instance)
+Connection::Connection(Instance &instance)
: _instance{instance}
{}
-answer_type Request::get(API::endpoint_type endpoint)
+answer_type Connection::get(API::endpoint_type endpoint)
{
answer_type answer;
answer.body = API{endpoint}.to_string();
return answer;
}
-answer_type Request::get(string endpoint)
+answer_type Connection::get(string endpoint)
{
answer_type answer;
answer.body = make_request(http_method::GET, "https://ip.tastytea.de/");