Delete try catch from ReconClient.
This commit is contained in:
3
thirdParty/Req/pub/include/Response.h
vendored
3
thirdParty/Req/pub/include/Response.h
vendored
@@ -7,6 +7,7 @@ namespace Req {
|
||||
{
|
||||
public:
|
||||
Response();
|
||||
static Response* ErrorResponse(const std::string & content);
|
||||
Response(Response &&) = default;
|
||||
Response(const Response &) = default;
|
||||
Response &operator=(Response &&) = delete;
|
||||
@@ -15,9 +16,11 @@ namespace Req {
|
||||
long httpCode();
|
||||
void setHttpCode(long code);
|
||||
std::string& getContent();
|
||||
bool isResponsed();
|
||||
private:
|
||||
long mHttpCode = 404;
|
||||
std::string mContent;
|
||||
bool mResponsed;
|
||||
};
|
||||
};
|
||||
#endif // __RESPONSE_H__
|
||||
Reference in New Issue
Block a user