25 #include <jsonrpccpp/server/connectors/httpserver.h> 34 SafeHttpServer(
int _port, std::string
const& _sslcert = std::string(), std::string
const& _sslkey = std::string(),
int _threads = 50):
35 HttpServer(_port, _sslcert, _sslkey, _threads) {}
38 bool virtual SendResponse(std::string
const& _response,
void* _addInfo =
nullptr)
override;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
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 ...
std::string const & allowedOrigin() const
virtual bool SendResponse(std::string const &_response, void *_addInfo=nullptr) override
override HttpServer implementation
virtual bool SendOptionsResponse(void *_addInfo) override
void setAllowedOrigin(std::string const &_origin)
std::string m_allowedOrigin