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

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

Issue 12020043: Issue 325 - Remove discovery and codegen (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: minor Created 10 years, 8 months ago
Right Patch Set: Sir miceli comment Created 10 years, 7 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
« no previous file with change/comment | « Src/GoogleApis/Apis/Discovery/WebDiscoveryDevice.cs ('k') | Src/GoogleApis/Apis/Requests/ClientServiceRequest.cs » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
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 27 matching lines...) Expand all
38 public class ConfigurableMessageHandler : DelegatingHandler 38 public class ConfigurableMessageHandler : DelegatingHandler
39 { 39 {
40 /// <summary> The class logger. </summary> 40 /// <summary> The class logger. </summary>
41 private static readonly ILogger Logger = ApplicationContext.Logger.ForTy pe<ConfigurableMessageHandler>(); 41 private static readonly ILogger Logger = ApplicationContext.Logger.ForTy pe<ConfigurableMessageHandler>();
42 42
43 /// <summary> Maximum allowed number of tries. </summary> 43 /// <summary> Maximum allowed number of tries. </summary>
44 [VisibleForTestOnly] 44 [VisibleForTestOnly]
45 internal const int MaxAllowedNumTries = 20; 45 internal const int MaxAllowedNumTries = 20;
46 46
47 /// <summary> The current API version of this client library. </summary> 47 /// <summary> The current API version of this client library. </summary>
48 private static readonly string ApiVersion = Google.Apis.Util.Utilities.G etLibraryVersion(); 48 private static readonly string ApiVersion = Google.Apis.Util.Utilities.G etLibraryVersion();
ngmiceli 2013/08/06 03:42:06 Why this change?
peleyal 2013/08/06 14:46:57 There were two Utilities classes before this chang
49 49
50 /// <summary> The User-Agent suffix header which contains the <seealso c ref="ApiVersion"/>. </summary> 50 /// <summary> The User-Agent suffix header which contains the <seealso c ref="ApiVersion"/>. </summary>
51 private static readonly string UserAgentSuffix = "google-api-dotnet-clie nt/" + ApiVersion + " (gzip)"; 51 private static readonly string UserAgentSuffix = "google-api-dotnet-clie nt/" + ApiVersion + " (gzip)";
52 52
53 #region IHttpUnsuccessfulResponseHandler, IHttpExceptionHandler and IHtt pExecuteInterceptor lists 53 #region IHttpUnsuccessfulResponseHandler, IHttpExceptionHandler and IHtt pExecuteInterceptor lists
54 54
55 /// <summary> A list of <see cref="IHttpUnsuccessfulResponseHandler"/>. </summary> 55 /// <summary> A list of <see cref="IHttpUnsuccessfulResponseHandler"/>. </summary>
56 private readonly IList<IHttpUnsuccessfulResponseHandler> unsuccessfulRes ponseHandlers = 56 private readonly IList<IHttpUnsuccessfulResponseHandler> unsuccessfulRes ponseHandlers =
57 new List<IHttpUnsuccessfulResponseHandler>(); 57 new List<IHttpUnsuccessfulResponseHandler>();
58 58
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 request.Headers.Remove("Authorization"); 306 request.Headers.Remove("Authorization");
307 request.Headers.IfMatch.Clear(); 307 request.Headers.IfMatch.Clear();
308 request.Headers.IfNoneMatch.Clear(); 308 request.Headers.IfNoneMatch.Clear();
309 request.Headers.IfModifiedSince = null; 309 request.Headers.IfModifiedSince = null;
310 request.Headers.IfUnmodifiedSince = null; 310 request.Headers.IfUnmodifiedSince = null;
311 request.Headers.Remove("If-Range"); 311 request.Headers.Remove("If-Range");
312 return true; 312 return true;
313 } 313 }
314 } 314 }
315 } 315 }
LEFTRIGHT

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