Mercurial > hg > orthanc
diff Core/HttpServer/MongooseServer.h @ 1441:f3672356c121
refactoring: IHttpHandler and HttpToolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2015 10:38:39 +0200 |
parents | 6e7e5ed91c2d |
children | 895ab369d63c |
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.h Wed Jul 01 10:18:26 2015 +0200 +++ b/Core/HttpServer/MongooseServer.h Wed Jul 01 10:38:39 2015 +0200 @@ -32,7 +32,7 @@ #pragma once -#include "HttpHandler.h" +#include "IHttpHandler.h" #include <list> #include <map> @@ -60,7 +60,7 @@ class MongooseServer { public: - typedef std::list<HttpHandler*> Handlers; + typedef std::list<IHttpHandler*> Handlers; private: // http://stackoverflow.com/questions/311166/stdauto-ptr-or-boostshared-ptr-for-pimpl-idiom @@ -103,7 +103,7 @@ void RegisterUser(const char* username, const char* password); - void RegisterHandler(HttpHandler& handler); + void RegisterHandler(IHttpHandler& handler); bool IsAuthenticationEnabled() const {