- Timestamp:
- Aug 31, 2018 7:28:56 PM (6 years ago)
- Location:
- trunk/src/VBox/Runtime/common/rest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBase.cpp
r73978 r74009 63 63 64 64 65 voidRTCRestClientApiBase::doCall(RTCRestClientRequestBase const &a_rRequest, RTHTTPMETHOD a_enmHttpMethod,66 65 int RTCRestClientApiBase::doCall(RTCRestClientRequestBase const &a_rRequest, RTHTTPMETHOD a_enmHttpMethod, 66 RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod) 67 67 { 68 68 LogFlow(("doCall: %s %s\n", a_pszMethod, RTHttpMethodName(a_enmHttpMethod))); 69 70 /* 71 * Reset the response object, allowing reuse of such. 72 */ 73 a_pResponse->reset(); 69 74 70 75 /* … … 149 154 a_pResponse->receiveFinal(); 150 155 151 return ;156 return a_pResponse->getStatus(); 152 157 } 153 158 } … … 158 163 a_pResponse->receiveComplete(rc, hHttp); 159 164 RT_NOREF_PV(a_pszMethod); 165 166 return a_pResponse->getStatus(); 160 167 } 161 168 -
trunk/src/VBox/Runtime/common/rest/RTCRestClientResponseBase.cpp
r73995 r74009 84 84 85 85 return *this; 86 } 87 88 89 void RTCRestClientResponseBase::reset() 90 { 91 /* Return to default constructor state. */ 92 m_rcStatus = VERR_WRONG_ORDER; 93 m_rcHttp = VERR_NOT_AVAILABLE; 94 if (m_pErrInfo) 95 deleteErrInfo(); 96 m_strContentType.setNull(); 86 97 } 87 98
Note:
See TracChangeset
for help on using the changeset viewer.