Crow
Crow copied to clipboard
A Fast and Easy to use microframework for the web.
Hi, I'm trying to build the example and I'm having an issue with the websocket. I downloaded the latest release version of crow. I tried to compile with the header...
I have a `GET` api, and I my code is: ```cpp CROW_ROUTE(app, "/license").methods("GET"_method)([](const crow::request &req) { try { if (req.url_params.get("serial") == nullptr) return crow::response(400); additionalPayload = std::string(req.url_params.get("serial")); if (req.url_params.get("period") ==...
Following discussion at #144, this issue is a reminder to create a basic authentication example using Crow. Ideally a login page to enter user+password is welcomed then a simple "hello...
On Windows merge_all.py results in an encoding error. Adding `encoding='UTF-8'` in `open()` file function resolves this issue.
I build crow using the guidline described here: https://crowcpp.org/master/getting_started/setup/linux/#using-cmake_1 I really dont understand when including crow in my cmake project I get the following: Found package configuration file: /usr/local/lib/cmake/Crow/CrowConfig.cmake but...
If one calls `crow::websocket::connection::close()` followed by `crow::Crow::stop()` right away, they are probably doomed. I only skimmed through the code. Looks like the issue was, `crow::websocket::connection::close()` uses asio's dispatch function so...
If TCP port is already occupied, the constructor of "crow::Server" will throw exception by bind() of boost:asio(I'm using boost::asio). It's a bad practice to throw in ctor. Please refer to...
Attempting to build example from https://crowcpp.org/getting_started/your_first_application/ I'm on Ubuntu 20.04.4, so using g++ 9.4.0-1ubuntu1 and cmake 3.16.3. Installed Crow .deb file. In my own CMakeLists.txt, relevant lines are: ``` ADD_DEFINITIONS...
Allow Crow to use a config file to define anything that would be specified in `crow::Crow` methods or macros. This was suggested by @ipkn in a TODO: > replace with...
This is a comment made by u/aninteger on reddit > Since you are using asio I think you really need to be writing async handlers. You can't just set multi-threaded...