Motified WebCC library. Oraginal Source: https://github.com/sprinfall/webcc
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Chunting Gu 5e6f125f90 Fix compile errors on Linux. 7 years ago
doc Update SOAP server tutorial. 7 years ago
example Fix compile errors on Linux. 7 years ago
src/webcc Fix compile errors on Linux. 7 years ago
third_party Refine CMake, update UT. 7 years ago
unittest Fix compile errors on Linux. 7 years ago
.gitmodules Replace rapidjson with jsoncpp. 7 years ago
CMakeLists.txt Refine logger; add UrlQuery for query parameters. 7 years ago
README.md Update readme 7 years ago
compile_commands.json Fix compile errors on Linux. 7 years ago

README.md

webcc

A lightweight C++ REST and SOAP client and server library based on Boost.Asio.

Please see the doc folder for tutorials and example folder for examples.

Build Instructions

A lot of C++11 features are used, e.g., std::move. But C++14 is not required. It means that you can still build webcc using VS2013.

CMake 3.1.0+ is required as the build system. But if you don't use CMake, you can just copy the src/webcc folder to your own project then manage it by yourself.

C++ Boost should be 1.66+ because Asio made some broken changes to the API in 1.66.

Build Options

The following CMake options determine how you build the projects. They are quite self-explanatory.

option(WEBCC_ENABLE_LOG "Enable console logger?" ON)
option(WEBCC_ENABLE_SOAP "Enable SOAP support (need pugixml)?" ON)
option(WEBCC_BUILD_UNITTEST "Build unit test?" ON)
option(WEBCC_BUILD_REST_EXAMPLE "Build REST example?" ON)
option(WEBCC_BUILD_SOAP_EXAMPLE "Build SOAP example?" ON)

If WEBCC_ENABLE_SOAP is ON, pugixml (already included) is used to parse and compose XML strings.