diff Core/HttpServer/MongooseServer.h @ 901:7d88f3f4a3b3 plugins

refactoring IsServedUri, answer PNG images, regular expression groups
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Jun 2014 15:22:13 +0200
parents bb0a51561016
children da56a7916e8a
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.h	Wed Jun 18 14:02:02 2014 +0200
+++ b/Core/HttpServer/MongooseServer.h	Wed Jun 18 15:22:13 2014 +0200
@@ -59,12 +59,14 @@
 
   class MongooseServer
   {
+  public:
+    typedef std::list<HttpHandler*> Handlers;
+
   private:
     // http://stackoverflow.com/questions/311166/stdauto-ptr-or-boostshared-ptr-for-pimpl-idiom
     struct PImpl;
     boost::shared_ptr<PImpl> pimpl_;
 
-    typedef std::list<HttpHandler*> Handlers;
     Handlers handlers_;
 
     typedef std::set<std::string> RegisteredUsers;
@@ -139,11 +141,13 @@
 
     void ClearHandlers();
 
-    void FindHandlers(std::list<HttpHandler*>& result,
-                      const UriComponents& forUri) const;
-
     ChunkStore& GetChunkStore();
 
     bool IsValidBasicHttpAuthentication(const std::string& basic) const;
+
+    const Handlers& GetHandlers() const
+    {
+      return handlers_;
+    }
   };
 }