NEC mBaaS Embedded SDK  6.2.0
 全て クラス ネームスペース ファイル 関数 変数 列挙型 列挙型の値
nb_http_response.h
説明を見る。
1 /*
2  * COPYRIGHT (C) 2017 NEC CORPORATION
3  *
4  * ALL RIGHTS RESERVED BY NEC CORPORATION, THIS PROGRAM
5  * MUST BE USED SOLELY FOR THE PURPOSE FOR WHICH IT WAS
6  * FURNISHED BY NEC CORPORATION, NO PART OF THIS PROGRAM
7  * MAY BE REPRODUCED OR DISCLOSED TO OTHERS, IN ANY FORM
8  * WITHOUT THE PRIOR WRITTEN PERMISSION OF NEC CORPORATION.
9  *
10  * NEC CONFIDENTIAL AND PROPRIETARY
11  */
12 
13 #ifndef NECBAAS_NBHTTPRESPONSE_H
14 #define NECBAAS_NBHTTPRESPONSE_H
15 
16 #include <string>
17 #include <vector>
18 #include <map>
19 
20 namespace necbaas {
21 
30  public:
37 
45  NbHttpResponse(int status_code, const std::string &reason_phrase,
46  const std::multimap<std::string, std::string> &headers, const std::vector<char> &body);
47 
52 
57  int GetStatusCode() const;
58 
63  const std::string &GetReasonPhrase() const;
64 
69  const std::multimap<std::string, std::string> &GetHeaders() const;
70 
75  const std::vector<char> &GetBody() const;
76 
83  void Dump() const;
84 
85  private:
86  int status_code_{0};
87  std::string reason_phrase_;
88  std::multimap<std::string, std::string> headers_;
89  std::vector<char> body_;
90 };
91 } // namespace necbaas
92 
93 #endif // NECBAAS_NBHTTPRESPONSE_H
void Dump() const
[内部処理用]
const std::vector< char > & GetBody() const
HTTPボディ取得.
NbHttpResponse()
[内部処理用]
HTTPレスポンス.
Definition: nb_http_response.h:29
int GetStatusCode() const
status-code取得.
const std::string & GetReasonPhrase() const
reason-phrase取得.
~NbHttpResponse()
デストラクタ.
const std::multimap< std::string, std::string > & GetHeaders() const
HTTPヘッダリスト取得.