Simple-Web-Server icon indicating copy to clipboard operation
Simple-Web-Server copied to clipboard

A very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Boost.Asio. Created to be an easy way to make REST resources available fro...

Results 54 Simple-Web-Server issues
Sort by recently updated
recently updated
newest added

Currently, successive calls to `Response::send` may queue data to be sent twice. For example, the following will send "foo.foo.foo.bar.bar.baz.", when it should only send "foo.bar.baz.": ```c++ *response send(); *response send();...

The base class is no longer a template class, making HTTP/HTTPS independent polymorphism on the client/server classes possible. At first I didn't much like the idea due to added complexity,...

Addresses Issue #168 Removed templating on ServerBase and inner classes. Created virtual methods for those using sockets Subclassed Response and Connection for HTTP/HTTPS All code and functionality _should_ be identical,...

`content_length` (`unsigned long long`) is bigger than `num_additional_bytes` (`size_t`) on Windows, so the compiler warns. Added a cast to make the compiler happy.

add `request->parse_post()` `request->parse_cookies()` to request add `response->set_MIME` `response->headers` `response->set_cookie` `response->send_headers` to response this a simple demo ``` server.default_resource["GET"] = [&server,&token](std::shared_ptr response, std::shared_ptr request) { try { auto web_root_path = std::filesystem::canonical(".");...

Found with clang's -Wunused-lambda-capture

Fixes compilation issue since Boost 1.53 doesn't have a TLS v1.2 SSL context. So we trick it by setting the OpenSSL flags directly.

It is nice if a server responds with Content-Type set in the header when sending files. The example shows a way to handle mime types (ready for copy and paste...