lintel
0.2.0
Loading...
Searching...
No Matches
src
include
lintel
features
http
provider
ClientProvider.h
Go to the documentation of this file.
1
#ifndef LINTEL_CLIENTPROVIDER_H
2
#define LINTEL_CLIENTPROVIDER_H
3
4
#include "
lintel/core/configuration/Configuration.h
"
5
#include "
lintel/features/http/service/Client.h
"
6
7
namespace
lintel
{
9
class
ClientProvider
10
{
11
private
:
12
std::shared_ptr<Client> m_client;
13
15
static
std::shared_ptr<Client> build(
const
std::shared_ptr<Configuration> &
configuration
);
16
17
public
:
18
explicit
ClientProvider
(
const
std::shared_ptr<Configuration> &
configuration
);
19
21
const
std::shared_ptr<Client> &
provide
();
22
};
23
24
}
// namespace lintel
25
#endif
// LINTEL_CLIENTPROVIDER_H
Client.h
Configuration.h
lintel::ClientProvider
Definition
ClientProvider.h:10
lintel::ClientProvider::provide
const std::shared_ptr< Client > & provide()
lintel::ClientProvider::ClientProvider
ClientProvider(const std::shared_ptr< Configuration > &configuration)
lintel
Definition
BaseFeature.h:6
lintel::type_name
constexpr std::string_view type_name()
Definition
TypeName.h:9
Generated by
1.9.8