Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(95)

Delta Between Two Patch Sets: Src/GoogleApis/Apis/Http/ConfigurableMessageHandler.cs

Issue 13480044: Issue 361: MediaDownloader can't download drive export list (which includes query parameters) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: Nick comments Created 10 years, 9 months ago
Right Patch Set: minor Created 10 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 /* 1 /*
2 Copyright 2013 Google Inc 2 Copyright 2013 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 /// <summary> Number of tries. Default is <c>3</c>. </summary> 87 /// <summary> Number of tries. Default is <c>3</c>. </summary>
88 private int numTries = 3; 88 private int numTries = 3;
89 89
90 /// <summary>· 90 /// <summary>·
91 /// Gets or sets the number of tries that will be allowed to execute. Re tries occur as a result of either 91 /// Gets or sets the number of tries that will be allowed to execute. Re tries occur as a result of either
92 /// <see cref="IHttpUnsuccessfulResponseHandler"/> or <see cref="IHttpEx ceptionHandler"/> which handles the 92 /// <see cref="IHttpUnsuccessfulResponseHandler"/> or <see cref="IHttpEx ceptionHandler"/> which handles the
93 /// abnormal Http response or exception, before being terminated.· 93 /// abnormal Http response or exception, before being terminated.·
94 /// Set <c>1</c> for not retrying requests. The default value is <c>3</c >". 94 /// Set <c>1</c> for not retrying requests. The default value is <c>3</c >".
95 /// <remarks> 95 /// <remarks>
96 /// The number of allowed redirects (3xx) is defined by <seealso cref="N umRedirects"/>. This property defines 96 /// The number of allowed redirects (3xx) is defined by <seealso cref="N umRedirects"/>. This property defines
97 /// only the allowed tries for >=400 responses, or in a case an exceptio n was thrown. It means that if for· 97 /// only the allowed tries for >=400 responses, or in a case an exceptio n was thrown. For example you set·
98 /// example you set <see cref="NumTries"/> to 1 and <see cref="NumRedire ct"/> to 5, a retry will happen only 98 /// <see cref="NumTries"/> to 1 and <see cref="NumRedirect"/> to 5, a re try will happen only for 5 redirects.
ngmiceli 2013/10/14 19:27:10 Try to be as explicit as possible. Here's what we
99 /// for 5 redirects.
100 /// </remarks> 99 /// </remarks>
101 /// </summary> 100 /// </summary>
102 public int NumTries 101 public int NumTries
103 { 102 {
104 get { return numTries; } 103 get { return numTries; }
105 set 104 set
106 { 105 {
107 if (value > MaxAllowedNumTries || value < 1) 106 if (value > MaxAllowedNumTries || value < 1)
108 { 107 {
109 throw new ArgumentOutOfRangeException("NumTries"); 108 throw new ArgumentOutOfRangeException("NumTries");
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 request.Headers.Remove("Authorization"); 341 request.Headers.Remove("Authorization");
343 request.Headers.IfMatch.Clear(); 342 request.Headers.IfMatch.Clear();
344 request.Headers.IfNoneMatch.Clear(); 343 request.Headers.IfNoneMatch.Clear();
345 request.Headers.IfModifiedSince = null; 344 request.Headers.IfModifiedSince = null;
346 request.Headers.IfUnmodifiedSince = null; 345 request.Headers.IfUnmodifiedSince = null;
347 request.Headers.Remove("If-Range"); 346 request.Headers.Remove("If-Range");
348 return true; 347 return true;
349 } 348 }
350 } 349 }
351 } 350 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b