BeastHttp
BeastHttp copied to clipboard
Provides helper tools for creating RESTful services using Boost.Beast
It'd be great if this library could also support HTTP/2. If this library's still being maintained, please consider doing this. I also have another query: I have [this](https://github.com/DragonOsman/currency_converterI) web server...
[user@ser_latitude VSCode]$ g++ -std=c++17 -o start_reactor -I/libs/backend/BeastHttp/BeastHttp/include -I/libs/boost/include/ main.cpp In file included from /libs/boost/include/boost/asio/execution.hpp:19, from /libs/boost/include/boost/asio/detail/strand_executor_service.hpp:27, from /libs/boost/include/boost/asio/strand.hpp:19, from /libs/backend/BeastHttp/BeastHttp/include/http/base/strand_stream.hxx:4, from /libs/backend/BeastHttp/BeastHttp/include/http/reactor/listener.hxx:5, from main.cpp:1: /libs/boost/include/boost/asio/execution/any_executor.hpp: In instantiation of 'struct boost::asio::execution::detail::is_valid_target_executor':...
Edit line of Boost versions. Based on my own expierence
with this define I can't compile the project: add_definitions(-DBOOST_ASIO_NO_DEPRECATED=1) ```shell Claus-iMac:.build-src-Debug clausklein$ ninja -j 1 -v [1/12] /usr/local/bin/ccache /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ASIO_NO_DEPRECATED=1 -DBOOST_ASIO_SEPARATE_COMPILATION=1 -DBOOST_BEAST_SEPARATE_COMPILATION=1 -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -I/Users/clausklein/Workspace/cpp/BeastHttp/BeastHttp/src/../include -isystem /usr/local/Cellar/boost/1.72.0_2/include -isystem /usr/local/opt/openssl/include...
when i try to build it in windows with vs2019 (use Clion as IDE). it have many error https://github.com/0xdead4ead/BeastHttp/issues/37 https://github.com/0xdead4ead/BeastHttp/issues/34 https://github.com/0xdead4ead/BeastHttp/issues/33 after i fix above issue in my this folk...
when i try the code of `BeastHttp/src/examples/reactor/main.cxx` in vs2019 . it tell me `warning C4067: unexpected tokens following preprocessor directive - expected a newline` . and i check it, the...
Hi, `-- The CXX compiler identification is GNU 5.4.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI...
I use the following code to create a modular route. http::basic_router router{std::regex::ECMAScript}; http::basic_router router__{std::regex::ECMAScript}; router__.get(R"(^/$)", [](http_request beast_http_request, http_context context) { context.send(make_200(beast_http_request, "Main page\n", "text/html")); }); router.use(R"(/animal$)", router__); I get this...
说明说要求最低c++11,但是尝试下来在windows平台编译不过 如果说平台差异那么仅仅是特有的一些函数可能不过 ,但是很多语法感觉都编译不过 例如listener.hxx:112 _OnAccept, void(socket_type)>::value and base::traits::TryInvoke::value, int>::type) 目前好像c++没看到过有and语法 感觉整个项目通用性不强
什么编译器支持的额,能不能改成通用点的#ifndef呢