MXS-1220: Clean up resource, request and response headers
Cleaned up various parts of the resource, request and response class headers. Moved `using` declarations into .cc files. Made the Resource class non-copyable as it isn't really meant to be copied.
This commit is contained in:
committed by
Markus Mäkelä
parent
80104d6dad
commit
ebc9e4bd3b
@ -18,7 +18,6 @@
|
||||
|
||||
#include <string>
|
||||
#include <deque>
|
||||
#include <tr1/memory>
|
||||
|
||||
#include <maxscale/server.h>
|
||||
|
||||
@ -30,14 +29,12 @@
|
||||
#include "filter.h"
|
||||
#include "session.h"
|
||||
|
||||
using std::string;
|
||||
using std::shared_ptr;
|
||||
using std::deque;
|
||||
|
||||
typedef HttpResponse (*ResourceCallback)(HttpRequest& request);
|
||||
|
||||
class Resource
|
||||
{
|
||||
Resource(const Resource&);
|
||||
Resource& operator = (const Resource&);
|
||||
public:
|
||||
|
||||
Resource(ResourceCallback cb, int components, ...);
|
||||
@ -63,10 +60,10 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
bool matching_variable_path(const string& path, const string& target);
|
||||
bool matching_variable_path(const std::string& path, const std::string& target);
|
||||
|
||||
ResourceCallback m_cb; /**< Resource handler callback */
|
||||
deque<string> m_path; /**< Path components */
|
||||
std::deque<std::string> m_path; /**< Path components */
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user