12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /***************************************************************************
- * Copyright (C) 2009, 2010 by Axel Jaeger <axeljaeger@googlemail.com> *
- * *
- * This file is part of Glowworm. *
- * *
- * Glowworm is free software: you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation, version 3 of the License. *
- * *
- * Glowworm is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with Glowworm. If not, see <http://www.gnu.org/licenses/>. *
- ***************************************************************************/
- #include "HttpRequest.h"
- HttpRequest::HttpRequest()
- {
- }
- HttpRequest::~HttpRequest()
- {
- }
- QStringList HttpRequest::parameterNames() const
- {
- return m_parameters.keys();
- }
- QString HttpRequest::parameter(const QString & name) const
- {
- return m_parameters.value(name);
- }
- QString HttpRequest::method() const
- {
- return m_method;
- }
- void HttpRequest::setParameters(QMap<QString, QString> parameters)
- {
- m_parameters = parameters;
- }
- void HttpRequest::setMethod(const QString & method)
- {
- m_method = method;
- }
- QUrl HttpRequest::url() const
- {
- return m_url;
- }
- void HttpRequest::setUrl(const QUrl & url)
- {
- m_url = url;
- }
|