Skip to content
Permalink
Browse files

Add getHeader() method to QgsServerRequest

  • Loading branch information
dmarteau committed Jan 10, 2017
1 parent 7600919 commit af5eed1a4b5ba017c8c0c3e23cd4783f81ea14dc
Showing with 15 additions and 0 deletions.
  1. +5 −0 python/server/qgsserverrequest.sip
  2. +5 −0 src/server/qgsserverrequest.cpp
  3. +5 −0 src/server/qgsserverrequest.h
@@ -53,6 +53,11 @@ class QgsServerRequest
//! destructor
virtual ~QgsServerRequest();

/**
* @return the value of the header field for that request
*/
virtual QString getHeader( const QString& name ) const;

/**
* @return the request url
*/
@@ -40,6 +40,11 @@ QgsServerRequest::~QgsServerRequest()

}

QString QgsServerRequest::getHeader( const QString& name ) const
{
return "";
}

QUrl QgsServerRequest::url() const
{
return mUrl;
@@ -57,6 +57,11 @@ class SERVER_EXPORT QgsServerRequest
//! destructor
virtual ~QgsServerRequest();

/**
* @return the value of the header field for that request
*/
virtual QString getHeader( const QString& name ) const;

/**
* @return the request url
*/

0 comments on commit af5eed1

Please sign in to comment.
You can’t perform that action at this time.