summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpresponse.h
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-06-19 17:12:20 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-06-19 17:12:20 -0400
commit6b4fe9fadc2301eb13a2854457b67fbebe045b08 (patch)
tree81b2b25ae98d1d0d0df14ae3f1ba86ec9cfdc8bb /indra/llcorehttp/httpresponse.h
parenta50944e078b98435685f04eda0ba93e95d4c61f2 (diff)
When a Content-Range header is received, make available the full triplet of <offset, length, fulllength>.
Diffstat (limited to 'indra/llcorehttp/httpresponse.h')
-rw-r--r--indra/llcorehttp/httpresponse.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llcorehttp/httpresponse.h b/indra/llcorehttp/httpresponse.h
index 5bcd7c4eb8..925cf81586 100644
--- a/indra/llcorehttp/httpresponse.h
+++ b/indra/llcorehttp/httpresponse.h
@@ -111,16 +111,18 @@ public:
/// If a 'Range:' header was used, these methods are involved
/// in setting and returning data about the actual response.
- void getRange(unsigned int * offset, unsigned int * length) const
+ void getRange(unsigned int * offset, unsigned int * length, unsigned int * full) const
{
*offset = mReplyOffset;
*length = mReplyLength;
+ *full = mReplyFullLength;
}
- void setRange(unsigned int offset, unsigned int length)
+ void setRange(unsigned int offset, unsigned int length, unsigned int full_length)
{
mReplyOffset = offset;
mReplyLength = length;
+ mReplyFullLength = full_length;
}
protected:
@@ -128,6 +130,7 @@ protected:
HttpStatus mStatus;
unsigned int mReplyOffset;
unsigned int mReplyLength;
+ unsigned int mReplyFullLength;
BufferArray * mBufferArray;
HttpHeaders * mHeaders;
};