Skip to content

Commit

Permalink
Add getHeader() method to QgsServerRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Jan 10, 2017
1 parent 7600919 commit af5eed1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/server/qgsserverrequest.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 5 additions & 0 deletions src/server/qgsserverrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ QgsServerRequest::~QgsServerRequest()

}

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

QUrl QgsServerRequest::url() const
{
return mUrl;
Expand Down
5 changes: 5 additions & 0 deletions src/server/qgsserverrequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit af5eed1

Please sign in to comment.