Index: Src/GoogleApis/Apis/Requests/RequestBuilder.cs =================================================================== --- a/Src/GoogleApis/Apis/Requests/RequestBuilder.cs +++ b/Src/GoogleApis/Apis/Requests/RequestBuilder.cs @@ -25,10 +25,11 @@ namespace Google.Apis.Requests { - /// Utility class used to build a request from the various parts of a REST Method call. - internal class RequestBuilder + /// Utility class for building a URI using or a HTTP request using + /// from the query and path parameters of a REST call. + public class RequestBuilder { - /// Supported Http methods. + /// Supported HTTP methods. private static IEnumerable SupportedMethods = new List { HttpConsts.Get, HttpConsts.Post, HttpConsts.Put, HttpConsts.Delete, HttpConsts.Patch @@ -59,10 +60,10 @@ /// public string Path { get; set; } - /// The Http method used for this request. + /// The HTTP method used for this request. private string method; - /// The Http method used for this request (such as GET, PUT, POST, etc...) + /// The HTTP method used for this request (such as GET, PUT, POST, etc...) /// Default Value is . public string Method { @@ -75,7 +76,7 @@ } } - /// Construct a new request builder. + /// Construct a new request builder. public RequestBuilder() { this.PathParameters = new Dictionary(); @@ -83,7 +84,7 @@ this.Method = HttpConsts.Get; } - /// Constructs a Uri as defined by the parts of this request builder. + /// Constructs a Uri as defined by the parts of this request builder. public Uri BuildUri() { var restPath = new StringBuilder(PathParameters @@ -104,7 +105,7 @@ return new Uri(this.BaseUri, restPath.ToString()); } - /// Adds a parameter value. + /// Adds a parameter value. /// Type of the parameter (must be Path or Query). /// Parameter name. /// Parameter value. @@ -131,7 +132,7 @@ } } - /// Creates a new Http request message. + /// Creates a new HTTP request message. public HttpRequestMessage CreateRequest() { return new HttpRequestMessage(new HttpMethod(Method), BuildUri());