Implemented first bits of http_file filter which serves plain
[metaproxy-moved-to-github.git] / src / filter_http_file.hpp
diff --git a/src/filter_http_file.hpp b/src/filter_http_file.hpp
new file mode 100644 (file)
index 0000000..b0ebdd4
--- /dev/null
@@ -0,0 +1,41 @@
+/* $Id: filter_http_file.hpp,v 1.1 2006-01-19 21:44:26 adam Exp $
+   Copyright (c) 2005, Index Data.
+
+%LICENSE%
+ */
+
+#ifndef FILTER_HTTP_FILE_HPP
+#define FILTER_HTTP_FILE_HPP
+
+#include <boost/scoped_ptr.hpp>
+
+#include "filter.hpp"
+
+namespace yp2 {
+    namespace filter {
+        class HttpFile : public Base {
+            class Rep;
+            class Area;
+            class Mime;
+            boost::scoped_ptr<Rep> m_p;
+        public:
+            HttpFile();
+            ~HttpFile();
+            void process(yp2::Package & package) const;
+        };
+    }
+}
+
+extern "C" {
+    extern struct yp2_filter_struct yp2_filter_http_file;
+}
+
+#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */