Connection build for GitHub api.
More...
#include <connection_builder.hpp>
Connection build for GitHub api.
◆ ConnectionBuilder() [1/2]
cpp_restapi::GitHub::ConnectionBuilder::ConnectionBuilder |
( |
| ) |
|
|
inline |
◆ ConnectionBuilder() [2/2]
cpp_restapi::GitHub::ConnectionBuilder::ConnectionBuilder |
( |
const ConnectionBuilder & | | ) |
|
|
delete |
◆ build()
template<typename CT , typename... Args>
std::shared_ptr< IConnection > cpp_restapi::GitHub::ConnectionBuilder::build |
( |
Args &&... | args | ) |
|
|
inline |
build cpp_restapi::IConnection object
- Template Parameters
-
- Parameters
-
args | backend specific arguments to be passed to connection. |
◆ setAddress()
ConnectionBuilder & cpp_restapi::GitHub::ConnectionBuilder::setAddress |
( |
const std::string & | address | ) |
|
|
inline |
change github api address.
- Parameters
-
Default value is https://api.github.com Api address should not be change in normal conditions. It is used for testing.
◆ setToken()
ConnectionBuilder & cpp_restapi::GitHub::ConnectionBuilder::setToken |
( |
const std::string & | token | ) |
|
|
inline |
set token used for authorization
- Parameters
-
token | token to be used for authorization |
The documentation for this class was generated from the following file: