Add getServerHeaderOption API in OCResource. 49/22349/1
authorZiran Sun <ziran.sun@samsung.com>
Fri, 1 Sep 2017 10:35:57 +0000 (11:35 +0100)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 6 Sep 2017 14:01:57 +0000 (14:01 +0000)
commit12113ad4cd2ef2fd722140d49890982a9522f57d
tree6f912661b50407cae40a61a41eff3ee91e673b7e
parent68c2a88201be10d4ffdc0d4001beb17aacc60c10
Add getServerHeaderOption API in OCResource.

Client requests to accessing headoptions, especially for
server version information. This patch adds a new API in
OCResource to access header Options from server response.

BUG: https://jira.iotivity.org/browse/IOT-2667
Change-Id: Ie18d3396666f778e0758ef0e4609274e53226cf1
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22299
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 3c83c81cf200156a13179c80ccc419ca4957ebf7)
resource/examples/simpleclient.cpp
resource/include/OCResource.h
resource/include/OCSerialization.h
resource/src/InProcClientWrapper.cpp
resource/src/OCResource.cpp