SharpGs.Internal.SharpGsClient.Request C# (CSharp) Method

Request() private method

private Request ( RequestMethod requestMethod = RequestMethod.GET, string bucket = null, string path = null, byte content = null, string contentType = null, Bucket objectHead = null, bool withData = false, string parameters = null ) : System.Xml.Linq.XDocument
requestMethod RequestMethod
bucket string
path string
content byte
contentType string
objectHead Bucket
withData bool
parameters string
return System.Xml.Linq.XDocument
        internal XDocument Request(RequestMethod requestMethod = RequestMethod.GET, string bucket = null, string path = null, byte[] content = null, string contentType = null, Bucket.ObjectHead objectHead = null, bool withData = false, string parameters = null)
        {
            var stream = content == null ? null : new MemoryStream(content);
            try
            {
                return RequestStream(requestMethod, bucket, path, stream, contentType, objectHead, withData, parameters);
            }
            finally
            {
                if (stream != null)
                    stream.Close();
            }
        }