diff options
author | Angelo Mantellini <angelo.mantellini@cisco.com> | 2020-02-18 17:27:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-02-18 17:27:27 +0000 |
commit | 0710f1ff754ebf01ae5befabb055349fe472b0c2 (patch) | |
tree | 648f6b622437353da87af9fcd3019de5fd5b24a3 /libtransport/src/hicn/transport/http/request.h | |
parent | e43298508d6e8afe67cebb53f97499dd06f4d822 (diff) | |
parent | 46c924b9d2edd84bc6ecb5367ba52fcff82804fa (diff) |
Merge "[HICN-528] Add progress bar to higet."
Diffstat (limited to 'libtransport/src/hicn/transport/http/request.h')
-rw-r--r-- | libtransport/src/hicn/transport/http/request.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/libtransport/src/hicn/transport/http/request.h b/libtransport/src/hicn/transport/http/request.h index 1202144c0..54904d696 100644 --- a/libtransport/src/hicn/transport/http/request.h +++ b/libtransport/src/hicn/transport/http/request.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Cisco and/or its affiliates. + * Copyright (c) 2017-2020 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -27,32 +27,28 @@ namespace http { class HTTPRequest : public HTTPMessage { public: + HTTPRequest(); HTTPRequest(HTTPMethod method, const std::string &url, - const HTTPHeaders &headers, const HTTPPayload &payload); + const HTTPHeaders &headers, HTTPPayload &&payload); - const std::string &getQueryString() const; + void init(HTTPMethod method, const std::string &url, + const HTTPHeaders &headers, HTTPPayload &&payload); - const std::string &getPath() const; + std::string getQueryString() const; - const std::string &getProtocol() const; + std::string getPath() const; - const std::string &getLocator() const; + std::string getProtocol() const; - const std::string &getPort() const; + std::string getLocator() const; - const std::string &getRequestString() const; + std::string getPort() const; - const HTTPHeaders &getHeaders() override; - - const HTTPPayload &getPayload() override; - - const std::string &getHttpVersion() const override; + std::string getRequestString() const; private: std::string query_string_, path_, protocol_, locator_, port_; std::string request_string_; - HTTPHeaders headers_; - HTTPPayload payload_; }; } // end namespace http |