Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::SafeHttpServer Class Reference

#include <SafeHttpServer.h>

Inheritance diagram for dev::SafeHttpServer:
[legend]
Collaboration diagram for dev::SafeHttpServer:
[legend]

Public Member Functions

 SafeHttpServer (int _port, std::string const &_sslcert=std::string(), std::string const &_sslkey=std::string(), int _threads=50)
 "using HttpServer" won't work with msvc 2013, so we need to copy'n'paste constructor More...
 
virtual bool SendResponse (std::string const &_response, void *_addInfo=nullptr) override
 override HttpServer implementation More...
 
virtual bool SendOptionsResponse (void *_addInfo) override
 
void setAllowedOrigin (std::string const &_origin)
 
std::string const & allowedOrigin () const
 

Private Attributes

std::string m_allowedOrigin
 

Detailed Description

Definition at line 30 of file SafeHttpServer.h.

Constructor & Destructor Documentation

dev::SafeHttpServer::SafeHttpServer ( int  _port,
std::string const &  _sslcert = std::string(),
std::string const &  _sslkey = std::string(),
int  _threads = 50 
)
inline

"using HttpServer" won't work with msvc 2013, so we need to copy'n'paste constructor

Definition at line 34 of file SafeHttpServer.h.

Here is the call graph for this function:

Member Function Documentation

std::string const& dev::SafeHttpServer::allowedOrigin ( ) const
inline

Definition at line 42 of file SafeHttpServer.h.

bool SafeHttpServer::SendOptionsResponse ( void *  _addInfo)
overridevirtual

Definition at line 56 of file SafeHttpServer.cpp.

Here is the caller graph for this function:

bool SafeHttpServer::SendResponse ( std::string const &  _response,
void *  _addInfo = nullptr 
)
overridevirtual

override HttpServer implementation

Definition at line 39 of file SafeHttpServer.cpp.

Here is the caller graph for this function:

void dev::SafeHttpServer::setAllowedOrigin ( std::string const &  _origin)
inline

Definition at line 41 of file SafeHttpServer.h.

Member Data Documentation

std::string dev::SafeHttpServer::m_allowedOrigin
private

Definition at line 45 of file SafeHttpServer.h.


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