Writing wrappers to interface c++ libraries with most common scripting languages is (usually) pretty easy. Probably much more so than trying to roll an entire HTTP server in C++.
If you have to roll your own, of course it is, hence why I didn't try... but if there was a mature, easy to integrate HTTP server library I would prefer to keep everything in C++ (or better yet rewrite it all in Rust, but that's a whole other can of worms).