yhirose/cpp-httplib ? reverse-engineered prompt
Reverse engineered prompt
Build me a small C++11 library that I can drop into a project as one header file and use right away for HTTP and HTTPS.
I want both a simple web server and a client, with easy route handling, request and response objects, and support for plain HTTP plus TLS with common certificate setup. It should also handle things like WebSockets, server sent events, and streaming responses, since I may want those later too. Make it cross platform and keep it lightweight, with a few simple examples so I can see how to start a server and make a request fast.
Please include basic tests and a clean README with copy and paste examples. If you need to check current SSL or platform details, look up the latest docs online first.
Are you gonna build this?
make sure you review the code using coderabbit