yahat-cpp
RESTinCurl
yahat-cpp | RESTinCurl | |
---|---|---|
2 | 3 | |
6 | 27 | |
- | - | |
6.4 | 0.0 | |
5 months ago | 11 months ago | |
C++ | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
yahat-cpp
-
REST APIs using C++. (Is this even done much?)
Yahat-cpp: Simple HTTP/API server library for use in C++ micro-services. This was just some code that kept evolving inside various projects, so I distilled it to a separate project to make it simpler to maintain. For an example of a real server using it, you cal look at nsblast, a new DNS server I'm implementing.
-
Has anyone embedded a web-UI into a C++ project?
I hope this question is not too off-topic here. I'm a bit lost. I'm working on a C++ project (a DNS server). It exposes a REST API via an embedded, very simple HTTP server. I have added swagger to document the API, and to test it from a browser. Now, I want to provide a simple web-UI to the application. I don't want this to become a major task, and ideally I want either a UI that lives as some simple js/css/http files in the browser, (so it can be served as a static website on the server-side like swagger) - or some simple to use back-end library in C++ that can drive the web-UI. In short, I hope to find a way to do this where I can have a POC ready in <= a week, and where I don't have to spend lot's of time learning some js framework.
RESTinCurl
-
REST APIs using C++. (Is this even done much?)
RESTinCurl: Wrapper over libcurl for projects not using boost/asio, typically for Android and IOS use-cases (but I have used it in servers as well). Besides wrapping the library, it also contains the code to handle asynchronous operations with libcurl.
-
How to convert libcurl to C++?
You can take a look at restincurl, which is a simple C++ wrapper around curl ;)
-
is a good option programing with NDK for android?
1) A C++ library compiled with the NDK with a Java wrapper and the UI written in Java/Kotlin. This was doable for this project because the project was huge with good funding and multiple teams working on the various components. I was responsible for the C++ part. The C++ library was also used in a iPhone app, and that was actually much more work (I had to write an Objective C layer) than on Android. During this project I wrote about how I ended up making a usable JNI wrapper. I also created two new Open Source projects to facilitate logging and using libcurl conveniently from C++ in mobile apps.
What are some alternatives?
restc-cpp - Modern C++ REST Client library
Oat++ - 🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
mstch - mstch is a complete implementation of {{mustache}} templates using modern C++
lithium - Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
Crow - A Fast and Easy to use microframework for the web.
nsblast - Massively scalable authorative DNS server
cpp-httplib - A C++ header-only HTTP/HTTPS server and client library
Pistache - A high-performance REST toolkit written in C++
userver - Production-ready C++ Asynchronous Framework with rich functionality
beauty - Experimental general HTTP 1.1 and 2 server and client library using C++20.
Wt - Wt, C++ Web Toolkit