POST data support
[pykit.git] / Publisher.hh
index 5e95625..46d7507 100644 (file)
@@ -14,6 +14,7 @@
 #include <QNetworkRequest>
 #include <QNetworkReply>
 #include <QBuffer>
+#include <boost/noncopyable.hpp>
 
 //#include "Publisher.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -32,6 +33,9 @@ namespace pykit {
         void setLocation(std::string const & location);
 
         QUrl url() const;
+        QByteArray postData() const;
+        QByteArray operation() const;
+        QString postContentType() const;
 
     private:
         Request(detail::InternalServerReply & reply);
@@ -42,6 +46,7 @@ namespace pykit {
     };
 
     class Publisher
+        : boost::noncopyable
     {
     public:
         virtual ~Publisher() {}