diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-05-24 16:55:21 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-05-24 16:59:23 +0200 |
commit | 2f57713f83d686cca0419f294e0bc421dda693e1 (patch) | |
tree | d6974c6c83305ae2e46ce0cd1809643becf44ebd /libtransport/src/hicn/transport/http/client_connection.h | |
parent | c219dcd814551f531b0ee98b5c5d835491f51c85 (diff) |
[HICN-206] Customize first part of the name for HTTP.
Change-Id: Ic2dd9cfce5b7d4eb82bef15cc40da16ea99230d8
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/http/client_connection.h')
-rw-r--r-- | libtransport/src/hicn/transport/http/client_connection.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libtransport/src/hicn/transport/http/client_connection.h b/libtransport/src/hicn/transport/http/client_connection.h index d0624702f..5bcf9c4c7 100644 --- a/libtransport/src/hicn/transport/http/client_connection.h +++ b/libtransport/src/hicn/transport/http/client_connection.h @@ -49,12 +49,14 @@ class HTTPClientConnection : public ConsumerSocket::ReadCallback { RC get(const std::string &url, HTTPHeaders headers = {}, HTTPPayload payload = {}, std::shared_ptr<HTTPResponse> response = nullptr, - ReadBytesCallback *callback = nullptr); + ReadBytesCallback *callback = nullptr, + std::string ipv6_first_word = "b001"); RC sendRequest(const std::string &url, HTTPMethod method, HTTPHeaders headers = {}, HTTPPayload payload = {}, std::shared_ptr<HTTPResponse> response = nullptr, - ReadBytesCallback *callback = nullptr); + ReadBytesCallback *callback = nullptr, + std::string ipv6_first_word = "b001"); HTTPResponse response(); @@ -68,7 +70,8 @@ class HTTPClientConnection : public ConsumerSocket::ReadCallback { private: void sendRequestGetReply(const HTTPRequest &request, - std::shared_ptr<HTTPResponse> &response); + std::shared_ptr<HTTPResponse> &response, + std::string &ipv6_first_word); bool verifyData(interface::ConsumerSocket &c, const core::ContentObject &contentObject); |