openthread-br
0.3.0-72c0388
|
Go to the documentation of this file.
34 #ifndef OTBR_REST_RESPONSE_HPP_
35 #define OTBR_REST_RESPONSE_HPP_
43 using std::chrono::duration_cast;
44 using std::chrono::microseconds;
45 using std::chrono::seconds;
46 using std::chrono::steady_clock;
72 void SetBody(std::string &aBody);
79 std::string
GetBody(
void)
const;
140 std::vector<std::string> mHeaderField;
141 std::vector<std::string> mHeaderValue;
143 std::string mProtocol;
146 steady_clock::time_point mStartTime;
152 #endif // OTBR_REST_RESPONSE_HPP_
Definition: response.hpp:56
bool IsComplete()
Definition: response.cpp:79
std::string Serialize(void) const
Definition: response.cpp:109
void SetResponsCode(std::string &aCode)
Definition: response.cpp:84
std::string GetBody(void) const
Definition: response.cpp:99
void SetComplete()
Definition: response.cpp:64
void SetCallback(void)
Definition: response.cpp:89
Response(void)
Definition: response.cpp:43
void SetBody(std::string &aBody)
Definition: response.cpp:94
bool NeedCallback(void)
Definition: response.cpp:104
steady_clock::time_point GetStartTime() const
Definition: response.cpp:74
void SetStartTime(steady_clock::time_point aStartTime)
Definition: response.cpp:69