virtual void abort();
using QNetworkReply::setHeader;
+ using QNetworkReply::setRawHeader;
void clearResponse();
QByteArray postData() const;
reply_.setHeader(QNetworkRequest::LocationHeader, QVariant(location.c_str()));
}
+prefix_ void pykit::Request::setHeader(std::string const & header, std::string const & value)
+{
+ reply_.setRawHeader(header.c_str(), value.c_str());
+}
+
prefix_ QUrl pykit::Request::url()
const
{
void setContentType(std::string const & contentType);
void setLocation(std::string const & location);
+ void setHeader(std::string const & header, std::string const & value);
QUrl url() const;
QByteArray postData() const;
.def("reset", &pykit::Request::reset)
.def("setContentType", &pykit::Request::setContentType)
.def("setLocation", &pykit::Request::setLocation)
+ .def("setRawHeader", &pykit::Request::setHeader)
.def("url", &pykit::Request::url)
.def("postData", &pykit::Request::postData)
.def("operation", &pykit::Request::operation)