17 #ifndef MASTODONPP_CONNECTION_HPP
18 #define MASTODONPP_CONNECTION_HPP
21 #include "curl_wrapper.hpp"
22 #include "instance.hpp"
23 #include "return_types.hpp"
26 #include <string_view>
32 using std::string_view;
76 const string_view _baseuri;
81 #endif // MASTODONPP_CONNECTION_HPP
Connection(Instance &instance)
Construct a new Connection object.
Definition: connection.cpp:22
C++ wrapper for the Mastodon API.
Definition: api.cpp:19
answer_type get(const API::endpoint_type &endpoint)
Make a HTTP GET call.
Definition: connection.cpp:27
Return type for Requests.
Definition: return_types.hpp:40
Holds the access data of an instance.
Definition: instance.hpp:40
variant< v1, v2, oauth, other, pleroma > endpoint_type
Type for endpoints. Can be API::v1, API::v2, API::oauth, API::other or API::pleroma.
Definition: api.hpp:295
Represents a connection to an instance. Used for requests.
Definition: connection.hpp:41
Handles the details of network connections.
Definition: curl_wrapper.hpp:56