Network code documentation for my turn-based game 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
HttpManager Class Referencefinal

HttpManager is an implementation of the HttpInterface which enable to send Http GET and POST requests with a json body using a sf::Http object. More...

#include <http_manager.h>

Inheritance diagram for HttpManager:
HttpInterface

Public Member Functions

constexpr HttpManager () noexcept=default
 
constexpr HttpManager (HttpManager &&other) noexcept=delete
 
constexpr HttpManageroperator= (HttpManager &&other) noexcept=delete
 
constexpr HttpManager (const HttpManager &other) noexcept=delete
 
constexpr HttpManageroperator= (const HttpManager &other) noexcept=delete
 
 ~HttpManager () noexcept override=default
 
void RegisterHostAndPort (std::string_view host, Port port) noexcept override
 
std::string Get (std::string_view uri) noexcept override
 
void Post (std::string_view uri, std::string_view json_body) noexcept override
 
- Public Member Functions inherited from HttpInterface
constexpr HttpInterface () noexcept=default
 
constexpr HttpInterface (HttpInterface &&other) noexcept=default
 
constexpr HttpInterfaceoperator= (HttpInterface &&other) noexcept=default
 
constexpr HttpInterface (const HttpInterface &other) noexcept=default
 
constexpr HttpInterfaceoperator= (const HttpInterface &other) noexcept=default
 
virtual ~HttpInterface () noexcept=default
 

Detailed Description

HttpManager is an implementation of the HttpInterface which enable to send Http GET and POST requests with a json body using a sf::Http object.

Constructor & Destructor Documentation

◆ HttpManager() [1/3]

constexpr HttpManager::HttpManager ( )
explicitconstexprdefaultnoexcept

◆ HttpManager() [2/3]

constexpr HttpManager::HttpManager ( HttpManager && other)
constexprdeletenoexcept

◆ HttpManager() [3/3]

constexpr HttpManager::HttpManager ( const HttpManager & other)
constexprdeletenoexcept

◆ ~HttpManager()

HttpManager::~HttpManager ( )
overridedefaultnoexcept

Member Function Documentation

◆ Get()

std::string HttpManager::Get ( std::string_view uri)
overridevirtualnoexcept

Implements HttpInterface.

◆ operator=() [1/2]

constexpr HttpManager & HttpManager::operator= ( const HttpManager & other)
constexprdeletenoexcept

◆ operator=() [2/2]

constexpr HttpManager & HttpManager::operator= ( HttpManager && other)
constexprdeletenoexcept

◆ Post()

void HttpManager::Post ( std::string_view uri,
std::string_view json_body )
overridevirtualnoexcept

Implements HttpInterface.

◆ RegisterHostAndPort()

void HttpManager::RegisterHostAndPort ( std::string_view host,
Port port )
overridevirtualnoexcept

Implements HttpInterface.


The documentation for this class was generated from the following file: