Left: | ||
Right: |
LEFT | RIGHT |
---|---|
(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 Loading... | |
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 Loading... | |
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 } |
LEFT | RIGHT |