diff options
author | James Johnson <jj@lindenlab.com> | 2014-02-26 10:16:07 -0800 |
---|---|---|
committer | James Johnson <jj@lindenlab.com> | 2014-02-26 10:16:07 -0800 |
commit | 556506278ab870f5ac190d25a991511b74074325 (patch) | |
tree | 110e83685b598e30502e7abd9c6f31cfa6b3a507 /indra/llcorehttp/httpresponse.h | |
parent | 0abdab7848b6fb02c2600e74774426acc6bf5ef6 (diff) | |
parent | de8fea13627cc5978b8a6135802a52864a11c39a (diff) |
Merged lindenlab/viewer-release into default
Diffstat (limited to 'indra/llcorehttp/httpresponse.h')
-rwxr-xr-x | indra/llcorehttp/httpresponse.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/indra/llcorehttp/httpresponse.h b/indra/llcorehttp/httpresponse.h index f19b521fbf..aee64e2878 100755 --- a/indra/llcorehttp/httpresponse.h +++ b/indra/llcorehttp/httpresponse.h @@ -4,7 +4,7 @@ * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Second Life Viewer Source Code - * Copyright (C) 2012, Linden Research, Inc. + * Copyright (C) 2012-2013, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -149,6 +149,25 @@ public: mContentType = con_type; } + /// Get and set retry attempt information on the request. + void getRetries(unsigned int * retries, unsigned int * retries_503) const + { + if (retries) + { + *retries = mRetries; + } + if (retries_503) + { + *retries_503 = m503Retries; + } + } + + void setRetries(unsigned int retries, unsigned int retries_503) + { + mRetries = retries; + m503Retries = retries_503; + } + protected: // Response data here HttpStatus mStatus; @@ -158,6 +177,8 @@ protected: BufferArray * mBufferArray; HttpHeaders * mHeaders; std::string mContentType; + unsigned int mRetries; + unsigned int m503Retries; }; |