| 170 | }; |
| 171 | |
| 172 | class HTTPSCacheServer : public CppServer::HTTP::HTTPSServer |
| 173 | { |
| 174 | public: |
| 175 | using CppServer::HTTP::HTTPSServer::HTTPSServer; |
| 176 | |
| 177 | protected: |
| 178 | std::shared_ptr<CppServer::Asio::SSLSession> CreateSession(const std::shared_ptr<CppServer::Asio::SSLServer>& server) override |
| 179 | { |
| 180 | return std::make_shared<HTTPSCacheSession>(std::dynamic_pointer_cast<CppServer::HTTP::HTTPSServer>(server)); |
| 181 | } |
| 182 | |
| 183 | protected: |
| 184 | void onError(int error, const std::string& category, const std::string& message) override |
| 185 | { |
| 186 | std::cout << "HTTPS server caught an error with code " << error << " and category '" << category << "': " << message << std::endl; |
| 187 | } |
| 188 | }; |
| 189 | |
| 190 | int main(int argc, char** argv) |
| 191 | { |
nothing calls this directly
no outgoing calls
no test coverage detected