We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <cinatra.hpp> using namespace cinatra; int main() { asio::io_context ctx; http_server server(ctx, 8080); server.set_http_handler<GET>("/", [](request& req, response& resp) { resp.set_status_and_content(status_type::ok, "hello world"); }); server.sync_start(); return 0; }
The text was updated successfully, but these errors were encountered:
再认真看下测试case:https://github.com/qicosmos/cinatra/blob/master/tests/test_coro_http_server.cpp#L641 看看自己错在哪里了。
Sorry, something went wrong.
可以用,就是使用有点复杂能像上面就更好了
No branches or pull requests
The text was updated successfully, but these errors were encountered: