Revision a27aa447 trunk/Pithos.Network/RestClient.cs
b/trunk/Pithos.Network/RestClient.cs | ||
---|---|---|
32 | 32 |
|
33 | 33 |
public string StatusDescription { get; set; } |
34 | 34 |
|
35 |
public long? RangeFrom { get; set; } |
|
36 |
public long? RangeTo { get; set; } |
|
35 | 37 |
|
36 | 38 |
public int Retries { get; set; } |
37 | 39 |
|
... | ... | |
73 | 75 |
request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip; |
74 | 76 |
if(Timeout>0) |
75 | 77 |
request.Timeout = Timeout; |
78 |
|
|
79 |
if (RangeFrom.HasValue) |
|
80 |
{ |
|
81 |
if (RangeTo.HasValue) |
|
82 |
request.AddRange(RangeFrom.Value, RangeTo.Value); |
|
83 |
else |
|
84 |
request.AddRange(RangeFrom.Value); |
|
85 |
} |
|
76 | 86 |
return request; |
77 | 87 |
} |
78 | 88 |
|
Also available in: Unified diff