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

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

Issue 13412046: Reimplement OAuth2 library - Step 1 (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: minor Created 10 years, 10 months ago
Right Patch Set: minor Created 10 years, 10 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
11 distributed under the License is distributed on an "AS IS" BASIS, 11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and 13 See the License for the specific language governing permissions and
14 limitations under the License. 14 limitations under the License.
15 */ 15 */
16 16
17 using System;
18 using System.Collections.Generic; 17 using System.Collections.Generic;
19 using System.Linq;
20 using System.Net.Http;
21 using System.Text;
22 18
23 namespace Google.Apis.Http 19 namespace Google.Apis.Http
24 { 20 {
25 /// <summary> Arguments for creating a HTTP client. </summary> 21 /// <summary>Arguments for creating a HTTP client.</summary>
26 public class CreateHttpClientArgs 22 public class CreateHttpClientArgs
27 { 23 {
28 /// <summary> Gets or sets whether GZip is enabled. </summary> 24 /// <summary>Gets or sets whether GZip is enabled.</summary>
29 public bool GZipEnabled { get; set; } 25 public bool GZipEnabled { get; set; }
30 26
31 /// <summary> Gets or sets the application name (It's used on the User-A gent header). </summary> 27 /// <summary>Gets or sets the application name (It's used on the User-Ag ent header).</summary>
32 public string ApplicationName { get; set; } 28 public string ApplicationName { get; set; }
33 29
34 /// <summary> Gets a list of initializers to initialize the HTTP client instance. </summary> 30 /// <summary>Gets a list of initializers to initialize the HTTP client i nstance.</summary>
35 public IList<IConfigurableHttpClientInitializer> Initializers { get; pri vate set; } 31 public IList<IConfigurableHttpClientInitializer> Initializers { get; pri vate set; }
36 32
37 /// <summary> Constructs a new argument instance. </summary> 33 /// <summary>Constructs a new argument instance.</summary>
38 public CreateHttpClientArgs() 34 public CreateHttpClientArgs()
39 { 35 {
40 Initializers = new List<IConfigurableHttpClientInitializer>(); 36 Initializers = new List<IConfigurableHttpClientInitializer>();
41 } 37 }
42 } 38 }
43 39
44 /// <summary> 40 /// <summary>
45 /// HTTP client factory creates configurable HTTP clients. A unique HTTP cli ent should be created for each service. 41 /// HTTP client factory creates configurable HTTP clients. A unique HTTP cli ent should be created for each service.
46 /// </summary> 42 /// </summary>
47 public interface IHttpClientFactory 43 public interface IHttpClientFactory
48 { 44 {
49 /// <summary> Creates a new configurable HTTP client by the given argume nts. </summary> 45 /// <summary>Creates a new configurable HTTP client by the given argumen ts.</summary>
50 ConfigurableHttpClient CreateHttpClient(CreateHttpClientArgs args); 46 ConfigurableHttpClient CreateHttpClient(CreateHttpClientArgs args);
51 } 47 }
52 } 48 }
LEFTRIGHT

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