Crow  0.0.4

◆ crow() [1/2]

nlohmann::crow::crow ( const std::string &  dsn,
const json &  context = nullptr,
bool  install_handlers = true 
)
explicit
Parameters
[in]dsnthe DNS string
[in]contextan optional attributes object
[in]install_handlerswhether to install a termination handler
Exceptions
std::invalid_argumentif DNS string is invalid
std::invalid_argumentif context object contains invalid key
Note
If dns is empty, the client is disabled.
In case install_handlers is set to true (default), the currently installed termination handler is replaced by a new termination handler that first reports possibly uncaught exceptions and then executes the previously installed termination handler. Note that termination handlers installed after creating this client would override this termination behavior. The termination handler can be installed later with function install_handler().
Since
0.0.1

Definition at line 51 of file crow.cpp.